XM

Bill To - Get bill-to by ship-to ID

Path:

GET /bill-to/ship-to/{shipToId}

Through this endpoint, your customer's can retrieve their billing addresses based on the specified shipToId.

Headers

Content-Type : application/json

x-site-context : {"channel":"com","date":"2019-06-19"}

x-api-key : d41d8cd98f00b204e9800998ecf8427e

Consumes

  • application/json

Produces

  • application/json

Parameters

Type: path

Name: ship-to ID

Required: true

Sample Request

https://dev01.demofabric.com/api-cart/ship-to/5e99dd58fcef0314e06b64fe

Response

Response Code: 200

Message: OK

Description: You will see this message when the billing details are successfully retrieved.

Sample

{
"_id": "5e99dd58fcef0314e06b64fe",
"shipMethod": {
"cost": {
"currency": "USD",
"amount": 10
},
"shipMethodId": "10002"
},
"address": {
"phone": {
"number": "123-992-9404",
"kind": "Mobile"
},
"name": {
"first": "John",
"last": "Smith"
},
"address1": "10400 NE 4th St ",
"city": "Bellevue",
"state": "WA",
"country": "United States",
"zipCode": "98004",
"kind": "shipping",
"email": "[email protected]"
},
"pickupPerson": {
"name": {
"first": "John",
"last": "Smith"
},
"phone": {
"number": "8087769338",
"kind": "Mobile"
},
"email": "[email protected]"
},
"altPickupPerson": {
"name": {
"first": "Jane",
"last": "Smith"
},
"phone": {
"number": "8087769338",
"kind": "Mobile"
},
"email": "[email protected]"
},
"billTo": [
{
"_id": "5e99dba9fcef0314e06b64fd",
"address": {
"phone": {
"number": "123-992-9404",
"kind": "Mobile"
},
"address1": "10400 NE 4th St ",
"city": "Bellevue",
"state": "WA",
"country": "United States",
"zipCode": "98004",
"kind": "shipping",
"name": {
"first": "John",
"last": "Doe"
},
"email": "[email protected]"
},
"paymentMethod": "Mastercard",
"cardIdentifier": "4242",
"amount": 50,
"billToId": 13,
"cart": "5e99d75cfcef0314e06b64b8",
"createdAt": "2020-04-17T16:39:05.641Z",
"updatedAt": "2020-04-17T16:43:03.893Z",
"__v": 0
}
],
"shipToType": "SHIP_TO_ADDRESS",
"storeId": "store123456789",
"cartId": "5e99d75cfcef0314e06b64b8",
"shipToId": 16,
"createdAt": "2020-04-17T16:46:16.352Z",
"updatedAt": "2020-04-17T16:46:16.352Z",
"__v": 0
‚Äč

Changelog

  • July-2020 last updated