Order devices with the API
Order Payabli payment devices for your organizations and paypoints entirely through the API. You describe the order once, Payabli prices it from the device catalog, and you pay for it by card. Payabli then ships the devices and adds tracking details to the order.
Considerations
- You never send card data. To pay for an order by card, you collect the card with the embedded component and send Payabli only the temporary token ID it returns.
- You use your own public token. Load the embedded component with your own public token and entrypoint, the same way you do to save cards today. Payabli moves the temporary token onto the order for you.
- Your API token needs device ordering permissions. Reading the catalog, recipients, and orders needs
deviceorder_read. Placing and paying for an order needsdeviceorder_create. Canceling an order needsdeviceorder_update. - The person placing the order accepts the terms. Show them the terms at the catalog’s
termsUrlbefore you place the order.
You can place, pay for, read, list, and cancel orders. Payabli handles fulfillment: it moves orders through Initiated, Dispatched, and Delivered, and it’s the only one that can cancel a paid order.
Order devices
Every order follows the same steps.
Check that device ordering is enabled
Send a GET request to /DeviceOrder/enabled/{entry} with the entrypoint of the organization or paypoint. When enabled is false, hide device ordering from your users. Only Payabli can turn device ordering on or off, so contact Payabli to turn it on for an organization. See the API reference for this endpoint for full documentation.
This endpoint always returns 200. If you aren’t authorized for the entry, it returns false, so you can’t use it to check whether an entry exists.
Get the device catalog
Send a GET request to /DeviceOrder/catalog to get the devices you can order. The response also lists the payment options, the shipping carriers Payabli uses, and the termsUrl of the terms the person placing the order must accept. Show only the payment options where enabled is true. See the API reference for this endpoint for full documentation.
Each device has an id to send as deviceProfileId when you place the order, plus its retailCost, shippingRate, and shippingDays.
Choose who the order is for
Send a GET request to /DeviceOrder/recipients to list the organizations and paypoints you can order devices for. Skip this step if you already know the recipient. See the API reference for this endpoint for full documentation.
When you place the order, send the paypoint’s entryName as entryName. For an organization-level order, send the organization’s id as organizationId instead.
Place the order
Send a POST request to /DeviceOrder with the recipient, the devices and quantities, the billing and shipping addresses, a contact, and termsAccepted: true. The request carries no amounts and no card data, because Payabli prices every line from the catalog. See the API reference for this endpoint for full documentation.
- Name the recipient. For a paypoint, send its
entryName. Payabli uses the paypoint’s parent organization, so you don’t need to sendorganizationId. For an organization-level order, sendorganizationIdand omitentryName. The request doesn’t acceptpaypointId. - Payabli matches the entry name without regard to letter case or leading and trailing spaces. The request returns
400with the messageRecipient not found.when the entry name doesn’t exist or belongs to someone else, matches more than one paypoint, isn’t in the organization you sent inorganizationId, or is longer than 255 characters. The message is the same in each case, so it doesn’t reveal which paypoints exist. - If you send
paypointId, the request returns400with the messagepaypointId is no longer supported. Send the paypoint's entryName instead.If you send neitherentryNamenororganizationId, it returns400with the messageOrganization is required. - List each device once and set its
quantity. An order can include up to 100 units in total. - In each address,
line1,city,state, andzipare required.countryis a two-letter ISO 3166-1 alpha-2 code and defaults toUS. - If you send
contactPhone, it must contain 7 to 15 digits, optionally starting with+. Spaces, parentheses, periods, and hyphens are ignored. - Send
termsAccepted: trueonly after the person placing the order accepts the terms. Payabli records who placed the order and when. - Send a unique
Idempotency-Keyheader, 1 to 100 characters long. If you send the same key again, Payabli returns the original order instead of creating a new one. - Set
payInline: trueif you pay for the order right after you place it. Payabli then sends one order confirmation email after the payment is approved, instead of one when you place the order that says payment is pending.
The new order’s status is Placed and its payment.paymentStatus is Pending. Pay for it in the next step.
Pay for the order
To pay for the order by card:
- Load the embedded component with your own public token, your entrypoint, and
temporaryToken: true. When the person placing the order enters their card, the component returns a temporary token ID inreferenceId. - Send a
POSTrequest to/DeviceOrder/{orderNumber}/paywith the temporary token ID asstoredMethodId. This endpoint accepts cards only, and it doesn’t need anIdempotency-Keyheader.
See the API reference for this endpoint for full documentation.
After a successful payment, the order’s status and payment.paymentStatus are both Paid.
A temporary token can be used only once, even when the card is declined. If the card is declined, the endpoint returns 402 and the order isn’t affected. Collect a card again, get a new temporary token from the component, and call /pay with the new ID. If you send the old ID, the endpoint returns 400. Don’t place the order again.
After a successful payment, Payabli emails a payment receipt to the order’s contactEmail.
Track the order
Send a GET request to /DeviceOrder/{orderNumber} to get the order’s status, payment details, and tracking. This endpoint also confirms the payment status when you read it, so use it as the source of truth for the order. See the API reference for this endpoint for full documentation.
After Payabli ships the order, its shipment object holds the trackingCarrier, the trackingNumber, and a trackingUrl for the carrier’s tracking page. shipment.events lists the carrier’s scans, newest first, and can be empty before the carrier’s first scan.
Every order response includes allowedNextStates, the statuses you can move the order to from its current status. Use it to decide what to show your users, instead of building the order lifecycle into your code. Paying for an order isn’t listed in allowedNextStates. Show the pay step only when the order’s status is Placed and its payment.paymentStatus is Pending. A canceled order that was never paid still has a Pending payment status, so check both.
Order statuses
An order’s status moves through these values:
This diagram shows how an order moves between statuses, and the notification each move sends.
Diagram: Device order status lifecycle
The diagram shows how a device order moves between statuses, and the notification each move sends:
- You place the order, and it becomes
Placed. Payabli sendsDeviceOrderPlaced. - You pay the order, and it becomes
Paid. Payabli sendsDeviceOrderPaid. - Payabli starts fulfillment, and the order becomes
Initiated. Payabli sendsDeviceOrderStatusChanged. - Payabli ships the order, and it becomes
Dispatched. Payabli sendsDeviceOrderStatusChanged. - The order is delivered, and it becomes
Delivered. Payabli sendsDeviceOrderStatusChanged.
A Placed order can be canceled by you or Payabli. A Paid order can be canceled only by Payabli, which reverses the charge. Either way, the order becomes Canceled and Payabli sends DeviceOrderStatusChanged. An order can’t be canceled after it’s Initiated.
Payment statuses
An order’s payment.paymentStatus shows where its payment stands:
Voided payment never appears on their statement, and a Refunded payment appears as a separate credit.Cancel an order
Send a POST request to /DeviceOrder/{orderNumber}/cancel, optionally with a reason. You can cancel an order only while it’s Placed, meaning before it’s paid. For any other status, the endpoint returns 409. See the API reference for this endpoint for full documentation.
To cancel an order that’s already paid, contact Payabli. Payabli reverses the charge before it cancels the order, so a canceled paid order always means the charge was voided or refunded. A voided charge never reaches the customer’s account. A refund can take several business days to reach it, depending on the customer’s bank. If Payabli can’t reverse the charge, the order stays Paid.
Get notified about order changes
Payabli sends three webhook notifications for device orders. Subscribe to them the same way you subscribe to other notifications. A device order notification also reaches subscriptions on the organizations above the ordering organization or paypoint.
The webhook body uses PascalCase field names and leaves out any field that has no value:
List and export orders
To list device orders, send a GET request to /Query/deviceOrders/{entry} for a paypoint, or to /Query/deviceOrders/org/{orgId} for an organization. Results include only the orders you’re authorized to see, and they’re sorted newest first by default. Filter the results with query parameters, for example status(in)=Paid|Dispatched or orderDate(ge)=2026-10-01. To export the results as a file, add exportFormat=csv or exportFormat=xlsx.
For the full list of filters, see List device orders by paypoint. For operator syntax and paging, see the Filters and conditions reference.