Skip to main content

Send Basket

Submits all orders currently in the basket for processing. Credits are applied first; if the order total exceeds the available credit balance, the remainder is charged to the credit card on file or the one provided in the request.

Request Body
uid string

Deprecated. Pass your API key in the Authorization header instead.

couponCode string
credit_card_id integer

If provided, it is the id number of the credit card on file to be charged.

check_quantity boolean

check cards and inserts quantity in stock, return insufficient quantity error in case of low stock

notes object

dictionary of order notes, order id is used as a key

price_structure object

Expected structure price by types of payment. If the structure does not match during the calculation, an error will be returned

coupon number
credit1 number
credit2 number
money number
Responses
200

successful

Schema OPTIONAL
httpCode integer OPTIONAL
status string OPTIONAL
items object OPTIONAL

dictionary of order objects, order id is used as a key

400

Error

Schema OPTIONAL
httpCode integer OPTIONAL
error string OPTIONAL

Possible values: [test mode error, invalid coupon code, Coupon already used, Coupon already expired, credit_card id error, no such credit card, [response from Authorize.Net], Can't get transaction id with card payment., insufficient quantity, Something went wrong with your payment method. Please refresh the page and try again]

error description

401

UNAUTHORIZED

Schema OPTIONAL
httpCode integer OPTIONAL

Possible values: [401]

Http status code

status string OPTIONAL

Possible values: [error]

message string OPTIONAL