Create order

Creates an order for a customer. The new order's status is draft. No payment is taken yet: to collect it, see 4 · Collect payment.

To take the payment in a form on your own website, send create_checkout: true with redirect_success_url and redirect_failed_url. The order is created as pending, and the response adds checkout and customer_portal_url. See Host a checkout on your website.

order_type sets how the customer pays. Each parameter says which order types it applies to. There's a request example for each type.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
integer
required
≥ 1

Your merchant profile ID. Required in every request.

Find it in the BillPro dashboard address, after /profiles/. For example, in /profiles/1234/orders the profile ID is 1234.

Body Params
order
object
required
Responses

Language
Credentials
Bearer
API token
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json