Path:
POST /api-cart/bill-to/cart/{cartID}
This endpoint enables your customers to add the billing details such as preferred payment method, billing address, contact details, etc. to the cart . The billToId received in the response is required to retrieve or update the billing details in the future.
x-site-context : { "date": "2020-08-28T02:35:27.787Z", "channel": 12, "account": 5f493c9f30ec2a0007a94fc8", "stage": "sandbox" }
x-api-key :d41d8cd98f00b204e9800998ecf8427e
application/json
application/json
Type: path
Name: cartId
Required: true
Type: body
Name: Billing details
Required: true
​
Path:
https://{baseurl}/api-cart/bill-to/cart/5e99d75cfcef0314e06b64b8
Body:
{"paymentMethod":"VISA","cardIdentifier":"4242","amount":24,"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":"Smith"},"email": "[email protected]"}}
Response Code: 200
Message: OK
Description: You will see this message when the billing details are successfully created.
Sample
{"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]"},"_id": "5e99dba9fcef0314e06b64fd","paymentMethod": "VISA","cardIdentifier": "4242","amount": 24,"billToId": 13,"cart": "5e99d75cfcef0314e06b64b8","createdAt": "2020-04-17T16:39:05.641Z","updatedAt": "2020-04-17T16:39:05.641Z"}
Last updated - July 2020