Create an order

Creates a new order for checkout. Returns both a code for Slope.JS widget and full URL for redirect flow

Body Params
number
required

Total amount of the order, in cents. Must be greater than 0

string
enum
required

The currency of the order

Allowed:
string
required

The external ID of the order, used for merchant reference. Must be unique.

items
array of objects
required

The line items in the order.

items*
string

Optional: The Slope customer ID for this order. If set, only this Slope customer will be able to access the order.

string

The customer business name

string

The customer email address

string

The customer first name

string

The customer last name

string

The desired funding limit for the customer, in cents.

string

The customer phone number in E.164 format.

billingAddress
object

The billing address of the order.

string

The Federal EIN / Tax ID of this business. Must be 9 digits.

string

If provided, overrides the default payout account for this order

string

The external ID of the payee receiving the payout for this order

string

The name of the payee receiving the payout for this order

string

(Optional) The URL to redirect the user if an order is approved offline. Relevant only if an order transitions from "pending" to "approved" status.

string

(Optional) The URL to redirect to if the user cancels the checkout. Relevant for redirect flow only

string

(Optional) The URL to redirect to if the user completes the checkout. Relevant for redirect flow only

metadata
object

Any additional metadata to attach to the order. This takes in a object

string
enum

The type of integration that is being used.

Allowed:
Headers
string
required

The access token returned from exchanging the short lived authorizationCode /v4/auth/token endpoint.

Responses

Language
Credentials
Basic
base64
:
URL
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json