Orders
Create Order
Creates an order object and triggers an order creation event.
📘 Upsert Mode
If you pass an id or a source_id that already exists in the order database, Voucherify will return a related order object with updated fields.
post/v1/orders
Request
- Base URLhttps://api.voucherify.io
- URLhttps://api.voucherify.io/v1/orders
- Auth
- API key in header X-App-Id and API key in header X-App-Token
- or OAuth 2Implicit: https://api.voucherify.io/v1/oauth/tokenScopes: api, orders
Request body
Example request
{
"created_at": "2021-12-22T10:13:06.487Z",
"referrer_id": "cust_nM4jqPiaXUvQdVSA6vTRUnix"
}Response
Returns an order object if the operation succeeded.
Example response
{
"created_at": "2021-12-22T10:13:06.487Z",
"updated_at": "2021-12-22T10:14:45.316Z",
"customer_id": "cust_7iUa6ICKyU6gH40dBU25kQU1",
"referrer_id": "cust_nM4jqPiaXUvQdVSA6vTRUnix"
}Changes
No recorded changes to this operation across all 1 revision of this API.