Skip to main content
POST
Buy Item

Headers

string
required
Your API key for authentication.

Body

array
required
Array of items to purchase.
string
required
The unique identifier for the user.
string
required
The unique identifier for the store.

Response

string
A message indicating the result of the purchase operation.
string
A code indicating the result of the purchase operation. Possible values:
  • ORDER_CREATED: Order created successfully
  • AUTH_MISSING: No API key provided
  • INVALID_KEY: Invalid API key
  • BAD_REQUEST_ERROR: Invalid request parameters
  • STORE_NOT_FOUND: Store ID not found
  • USER_NOT_FOUND: User ID not found
  • STORE_NOT_VERIFIED: Store is not verified yet
  • FORBIDDEN: Not authorized to access store
  • INTERNAL_ERROR: Server error occurred
string
Error message if the request fails.