Skip to main content
POST
/
alpha
/
merchant
/
customers
/
{customerId}
/
orders
Create an order for a customer
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>"
}

Headers

Authorization
string
required

Your Auction Now API key as a Bearer token

Example:

"Bearer ak_XXXXXXX"

Path Parameters

customerId
string
required

The unique ID of the customer

Body

application/json
data
object
required

Input data for creating an order

Response

Order created successfully

data
object
required

The order result

timestamp
number
required
message
string