Create an order

Please keep your current payload if you are already using our previous endpoints.

If an order with the same order_id has already been processed for the given store, the endpoint will return a 202 Accepted status with the message "This order has already been processed." and the order's id. This indicates that the request has been accepted and everything is fine on our side.

Required scopes:

  • order.create

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
required

Your order id.

string | null

If the order is initiated by an external partner, then this field must contain the order id from that partner.

string
enum
required

Order channel.

Allowed:
string
enum
required

Delivery mode.

Allowed:
string
required

The store slug from Hey Pongo. The slug of an existing record in the stores table.

integer | null

The Hey Pongo tablet id that should be notified.

integer
required

Order amount in cents.

integer | null

Order taxes amount in cents.

reward_ids
array of strings
reward_ids
string
enum
required

Order status.

Allowed:
string
required

Order creation datetime in ISO8601 format. Must be a valid date.

string
enum
required

Order delivery status.

Allowed:
string | null

Order withdrawal datetime in ISO8601 format. Must be a valid date.

string | null

Customer order comment.

lines
array of objects
required

Array of order lines (at least one). Must have at least 1 items.

lines*
customer
object | null

Customer data.

payments
array of objects

Payment details. This field is required when payments is present.

payments
string | null

Device id that handles the command.

string | null

Device name that handles the command.

Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

Language
Credentials
Bearer
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json