Shop

Place a shop order

Reprices, checks stock, and places the order. Card → PENDING_PAYMENT with a payUrl (the order's page with a Pay button). Cash (only add-ons to the person's own cash booking, visit) needs confirm: true.

post/v1/orders

Request

  • Base URL: https://api.nogpets.com
  • URL: https://api.nogpets.com/v1/orders
  • Auth: one of:
    • OAuth 2 (authorization code, authorization URL https://api.nogpets.com/oauth/authorize, token URL https://api.nogpets.com/oauth/token, scopes: orders:write)
    • HTTP bearer

Request body

shippingMethodstring required
postalCodestring
bookingIdstring
discountCodestring
paymentMethod'CARD' | 'CASH'
confirmboolean

Cash only: true once the person said yes.

Response

The order

orderIdstring required
numberstring required
statusstring required
totalCentsinteger required
totalstring required
payUrlstring uri nullable required

The order's page; a Pay button while unpaid.

nextstring required

Example response

{
  "number": "NP-1004"
}

Changes

No recorded changes to this operation across all 1 revision of this API.