Pause, resume, hold, release, cancel or mark a lead order paid
Needs the orders:write scope. About scopes
The order actions of the Lead orders screen. A reason is required to pause, hold or cancel. Cancelling a paid order with leads still owed refunds them the way they were paid, and mark_paid records the full price as paid by hand; both move money, so send an Idempotency-Key.
keyAuthorizationBearer <traki_account_…>id*stringuuidapplication/json- body
action*string"pause""resume""hold""release""cancel""mark_paid"reason?stringlength <= 300ifVersion?stringThe version the change is based on. When the record has changed since, the change is refused with 409 version_conflict.
^\d{1,16}$Success
application/json- response
id*stringuuidcode*stringstatus*stringtest*booleancampaign*tier*shelf*stringstates*array<string>quantity*integer-9007199254740991 <= value <= 9007199254740991filled*integer-9007199254740991 <= value <= 9007199254740991owed*integer-9007199254740991 <= value <= 9007199254740991replacements*integer-9007199254740991 <= value <= 9007199254740991dailyCap*|nullpacePerHour*integer-9007199254740991 <= value <= 9007199254740991deliveryDays*|nullcurrency*stringprice*stringtotal*stringcash*stringcredit*stringdiscount*stringpaymentMethod*string|nullpaidAt*string|nullpausedAt*string|nullpauseReason*string|nullholdReason*string|nullcancelReason*string|nullcompletedAt*string|nullexpectedCompletionAt*string|nulllastDeliveryAt*string|nullrefunded*origin*stringcreatedAt*stringupdatedAt*stringversion*stringbuyer*|nullnotes*string|nullcurl -X POST 'https://api.traki.io/v1/account/lead-orders/497f6eca-6276-4993-bfeb-53cbbbba6f08/actions' \ -H "Authorization: Bearer $TRAKI_KEY" \ -H 'Content-Type: application/json' \ -H 'Idempotency-Key: a-unique-id-for-this-change' \ -d '{ "action": "pause"}'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "code": "string", "status": "string", "test": true, "campaign": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string" }, "tier": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string" }, "shelf": "string", "states": [ "string" ], "quantity": -9007199254740991, "filled": -9007199254740991, "owed": -9007199254740991, "replacements": -9007199254740991, "dailyCap": -9007199254740991, "pacePerHour": -9007199254740991, "deliveryDays": -9007199254740991, "currency": "string", "price": "string", "total": "string", "cash": "string", "credit": "string", "discount": "string", "paymentMethod": "string", "paidAt": "string", "pausedAt": "string", "pauseReason": "string", "holdReason": "string", "cancelReason": "string", "completedAt": "string", "expectedCompletionAt": "string", "lastDeliveryAt": "string", "refunded": { "leads": -9007199254740991, "cash": "string", "credit": "string", "at": "string" }, "origin": "string", "createdAt": "string", "updatedAt": "string", "version": "string", "buyer": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "externalId": "string", "name": "string" }, "notes": "string"}Change a lead order’s terms PATCH
States, quantity (never below what is filled), daily cap, pace, run length and notes of an open order, with the reason its history keeps. The price per lead is the tier’s at the time of the order and does not change here.
List buyers’ lead wallets GET
Each buyer that takes form leads, with the cash and credit its lead-order wallet holds. Paged by buyer.