update_order
POST/update_order
The merchant sends a request to this endpoint to update any order order details. If increasing the order_total, a check will be done to see if the increase is within the limit the merchant has agreed upon. An update can only occur if order has been placed ('order_placed'). Once an order has been confirmed ('order_confirmed') no updates can be made to the order details.
Request
- application/json
Body
- Array [
- ]
Unique identifier for the order in Backd's system.
Unique identifier for the order in the merchant's system.
Status of the order in the merchant's system.
Total order amount including all applicable fees.
Total amount in the shopping cart excluding fees.
The amount of tax charged for the order.
The amount of shipping charged for the order.
The total discount amount applied to the order as positive number.
shipping object
Contains shipping details for the order.
name object
Name of the recipient.
First name of the recipient.
Last name of the recipient.
address object
Shipping address details.
First address line.
Second address line (optional).
City of the recipient.
State of the recipient.
Zip code of the recipient.
Country of the recipient.
Phone number of the recipient.
Email address of the recipient.
billing object
Contains billing details for the order.
name object
Name of the billing contact.
First name of the billing contact.
Last name of the billing contact.
address object
Billing address details.
First address line.
Second address line (optional).
City of the billing contact.
State of the billing contact.
Zip code of the billing contact.
Country of the billing contact.
Phone number of the billing contact.
Email address of the billing contact.
items object[]
List of items included in the order.
Display name of the item.
Stock Keeping Unit (SKU) of the item.
Unit price of the item.
Quantity of the item ordered.
URL of the item's image (optional).
URL of the item's page (optional).
Responses
- 200
Updated order details.
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
Total order amount after updates.
Total amount in the shopping cart.
The amount of tax charged for the order.
The amount of shipping charged for the order.
The total discount amount applied to the order.
Status of the order in Backd's system.
Unique identifier for the order in the merchant's system.
Status of the order in the merchant's system.
shipping object
Updated shipping details.
name object
Name of the recipient.
address object
Shipping address details.
billing object
Updated billing details.
name object
Name of the recipient.
address object
Billing address details.
items object[]
Updated list of items included in the order.
Display name of the item.
Stock Keeping Unit (SKU) of the item.
Unit price of the item.
Quantity of the item ordered.
URL of the item's image (optional).
URL of the item's page (optional).
{
"order_total": 8950,
"cart_amount": 9000,
"tax_amount": 100,
"shipping_amount": 50,
"discount_amount": 200,
"status": "order_placed",
"merchant_order_id": "JKLMO4321",
"merchant_order_status": "processing",
"shipping": {
"name": {
"first": "Joe",
"last": "Doe"
},
"address": {
"line1": "123 Main St",
"line2": "Floor 1",
"city": "Austin",
"state": "TX",
"zipcode": "78704",
"country": "USA"
},
"phone_number": "4153334567",
"email": "joedoe@123fakestreet.com"
},
"billing": {
"name": {
"first": "Joe",
"last": "Doe"
},
"address": {
"line1": "123 Main St",
"line2": "Floor 1",
"city": "Austin",
"state": "TX",
"zipcode": "78704",
"country": "USA"
},
"phone_number": "4153334567",
"email": "joedoe@123fakestreet.com"
},
"items": [
{
"display_name": "MacBook Pro",
"sku": "ABC-123",
"unit_price": 3000,
"qty": 3,
"item_image_url": "http://merchant.website.com/images/macbook-pro.jpg",
"item_url": "http://merchant.website.com/products/macbook-pro.html"
}
]
}