v1
latestOpenAPI 3.0.12026-07-2412502.6 MBAdd an order
Add a new order. A unique order can have one or multiple Offers, or line items, associated with it.<br /><br />An order can be created and processed or authorized at the same time. When passing an <strong>action</strong> value, there are more fields that would be required on the order, these fields are tagged with <span id='required-action'>required with action</span> and <span id='conditionally-required-action'>conditionally required with action</span><br /><br />When passing an <strong>action</strong> value, a <code>response_code=100</code> will indicate that the charge has been processed successfully with the gateway and there is no further action required. A <code>response_code=101</code> will indicate that there are more actions that need to be done in order to complete the charge. This is typical when using PayPal, AfterPay, Klarna or when using a 3 step redirect for 3DS transactions. To complete the transaction you will need to use the <code>/order/{order_id}/complete</code> method. Learn more <a href='https://docs.vrio.com/docs/handling-101-response-codes' target='_blank'>here</a>.
Request body
Response
OK
Example response
{
"date_created": "2023-04-01 00:00:00",
"date_modified": "2023-04-01 00:00:00",
"date_authorized": "2023-04-01 00:00:00",
"date_auto_capture": "2023-04-01 00:00:00",
"date_ordered": "2023-04-01 00:00:00",
"date_capture": "2023-04-01 00:00:00",
"cart": {
"campaign": {
"campaign_checkout_upsell": {
"items": [
{
"date_created": "2023-04-01 00:00:00",
"date_modified": "2023-04-01 00:00:00"
}
]
}
},
"order": {
"date_authorized": "2023-04-01 00:00:00",
"date_ordered": "2023-04-01 00:00:00"
},
"offers": [
{
"gift_date": "2023-04-01 00:00:00",
"upsells": [
{
"items": [
{
"date_created": "2023-04-01 00:00:00",
"date_modified": "2023-04-01 00:00:00"
}
]
}
]
}
]
},
"order_offers": [
{
"date_cancel": "2023-04-01 00:00:00",
"date_created": "2023-04-01 00:00:00",
"date_modified": "2023-04-01 00:00:00",
"date_ordered": "2023-04-01 00:00:00",
"date_reactivate": "2023-04-01 00:00:00",
"date_pause": "2023-04-01 00:00:00",
"date_unpause": "2023-04-01 00:00:00",
"last_recurring_date": "2023-04-01 00:00:00",
"next_recurring_date": "2023-04-01 00:00:00",
"order_offer_shipments": [
{
"date_cancel": "2023-04-01 00:00:00",
"date_scheduled": "2023-04-01 00:00:00",
"date_complete": "2023-04-01 00:00:00",
"date_scan": "2023-04-01 00:00:00",
"date_deliver": "2023-04-01 00:00:00",
"date_return": "2023-04-01 00:00:00",
"date_skip": "2023-04-01 00:00:00",
"date_rma": "2023-04-01 00:00:00",
"date_created": "2023-04-01 00:00:00",
"date_modified": "2023-04-01 00:00:00"
}
],
"order_offer_items": [
{
"date_created": "2023-04-01 00:00:00",
"date_modified": "2023-04-01 00:00:00"
}
],
"order_offer_gifts": [
{
"gift_date": "2023-04-01 00:00:00",
"gift_date_sent": "2023-04-01 00:00:00"
}
]
}
],
"customer_card": {
"date_created": "2023-04-01 00:00:00",
"date_modified": "2023-04-01 00:00:00"
}
}