XM

Bill To - Get by ID

Path:

GET /bill-to/{billToId}

Through this endpoint, your customer's can retrieve their billing details, easily, based on the specified BilltoID.

18.0.1. Headers

Content-Type :application/json

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

x-api-key :d41d8cd98f00b204e9800998ecf8427e

18.0.2. Consumes

  • application/json

18.0.3. Produces

  • application/json

18.0.4. Parameters

Type: path

Name: Bill-to ID

Required: true

18.0.5. Sample Request

https://{baseUrl}/api-cart/bill-to/5e99dba9fcef0314e06b64fd

18.0.6. Response

Response Code: 200

Message: OK

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

Sample

{
"_id": "5e99dba9fcef0314e06b64fd",
"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]"
},
"paymentMethod": "VISA",
"cardIdentifier": "4242",
"amount": 24,
"billToId": 13,
"cart": "5e99d75cfcef0314e06b64b8",
"createdAt": "2020-04-17T16:39:05.641Z",
"updatedAt": "2020-04-17T16:39:05.641Z",
"__v": 0
}

18.1. changelog

  • Last updated - July 2020