Create a buy-it-now order on behalf of a customer. Works for both auction products and standalone products.
cURL
curl --request POST \ --url https://api.auctionnow.io/api/alpha/merchant/customers/{customerId}/orders \ --header 'Authorization: <authorization>' \ --header 'Content-Type: application/json' \ --data ' { "data": { "productId": "<string>", "quantity": 2 } } '
{ "data": { "ok": true, "orderId": "<string>", "state": "<string>", "reason": "<string>", "idempotent": true }, "timestamp": 123, "message": "<string>" }
Your Auction Now API key as a Bearer token
"Bearer ak_XXXXXXX"
The unique ID of the customer
Input data for creating an order
Show child attributes
Order created successfully
The order result