Orders
Create order
This is where you can initiate an order with ShopBack, by using the initiateOrder method. We also provide a number of methods to refund orders. For example if the consumer returns one (or all) item(s) of an order, you can initiate a full or partial refund. You would be asked to send us the SKU number of the items to be refunded.
post/order/initiate
Request
- Base URLhttps://integrations-sandbox.shopback.com/demo/merchant
- Authnone declared. Required headers: Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
Authorizationstring required
Authorization
X-ShopBack-Idempotent-Idstring
Example:faa5e09a-8cf3-43f7-8309-d94deb426e66
Idempotent Id for the request. If this is absent, every request will be treated as unique and will be processed as such. (This is optional for now, but will be made required in the future)
Request body */*
Example request
{
"voucherCode": "FLAT50",
"discount": 10,
"consumerEmail": "bruce.willis@shopback.com",
"consumerPhoneNumber": "+6512341234",
"callbackUrl": "http://merchant.com/order/193123123/callback",
"closeUrl": "http://merchant.com/order/193123123/close",
"returnToShopUrl": "http://merchant.com/order/193123123/returnToShop",
"platformVersion": "12.2.3",
"consumerPhoneNumberExtension": 65,
"consumerTitle": "Mr",
"consumerFirstName": "Bob",
"consumerLastName": "Mann",
"consumerMiddleName": "John",
"currency": "SGD",
"shippingMethod": "NORMAL",
"shippingAddress": {
"line1": "Blk 35 Mandalay Road",
"line2": "# 13-37 Mandalay Towers",
"suburb": "Sentosa",
"city": "Malacca City",
"province": "Shanghai",
"state": "Selangor",
"district": "New Delhi",
"subDistrict": "Kecamatan Walakaka",
"municipality": "Sapporo",
"village": "Kakran",
"road": "111 Chaengwatthana Road",
"county": "Pudong",
"viaName": "New Delhi",
"taluk": "Meenachil Taluk",
"postcode": "308215",
"countryCode": "SG"
},
"billingAddress": {
"line1": "Blk 35 Mandalay Road",
"line2": "# 13-37 Mandalay Towers",
"suburb": "Sentosa",
"city": "Malacca City",
"province": "Shanghai",
"state": "Selangor",
"district": "New Delhi",
"subDistrict": "Kecamatan Walakaka",
"municipality": "Sapporo",
"village": "Kakran",
"road": "111 Chaengwatthana Road",
"county": "Pudong",
"viaName": "New Delhi",
"taluk": "Meenachil Taluk",
"postcode": "308215",
"countryCode": "SG"
},
"items": [
{
"name": "radioactive man comic book",
"sku": "93847598347",
"description": "radioactive man comic book",
"images": [
{
"imageLocation": "https://homepages.cae.wisc.edu/~ece533/images/serrano.png"
}
],
"warranty": 100,
"discount": 10
}
],
"merchantRef": "abc1234xyz",
"shippingAmount": 10,
"cartId": "abc1234xyz",
"storeUuid": "281ac28b-e785-429d-bf12-5a50e9db9377",
"partner": {
"merchantEntityId": "UEN in Singapore"
}
}Response
successful operation
Changes
No recorded changes to this operation across all 2 revisions of this API.