Create billto for a shipment [Deprecated]
Release Notes
- January 2025
- October 2024
- July 2024
- November 2023
- Feedback and Contact
Create billto for a shipment [Deprecated]
Create billto for a shipment
POST
/
api-cart
/
bill-to
/
cart
/
{cartId}
curl --request POST \
--url https://prod01-apigw.{customer_name}.fabric.zone/api-cart/bill-to/cart/{cartId} \
--header 'Content-Type: application/json' \
--data '{
"paymentMethod": "Visa Credit",
"cardIdentifier": "1234",
"amount": 149.99,
"address": {
"attention": "Leave at the back door.",
"street1": "123 Main Street",
"street2": "ABC Boulevard",
"city": "Seattle",
"state": "WA",
"country": "United States of America",
"zipCode": "10008-1234",
"kind": "TBD",
"name": {
"first": "John",
"last": "Smith"
},
"phone": {
"number": "123-456-7890",
"kind": "Mobile"
},
"email": "johnsmith@fabric.inc"
}
}'
{
"paymentMethod": "Visa Credit",
"cardIdentifier": "1234",
"amount": 149.99,
"address": {
"attention": "Leave at the back door.",
"street1": "123 Main Street",
"street2": "ABC Boulevard",
"city": "Seattle",
"state": "WA",
"country": "United States of America",
"zipCode": "10008-1234",
"kind": "TBD",
"name": {
"first": "John",
"last": "Smith"
},
"phone": {
"number": "123-456-7890",
"kind": "Mobile"
},
"email": "johnsmith@fabric.inc"
},
"billToId": 1,
"cart": "5e5818a84d030c206b2ffb02",
"_id": "5fee9d59f2f08a1b3cbdea08",
"createdAt": "2020-12-31T02:09:53.914Z",
"updatedAt": "2020-12-31T02:09:53.914Z"
}
Path Parameters
Required string length:
24
Body
application/json
Required string length:
3 - 24
Required string length:
4
Required range:
x > 0.01
Maximum length:
140
Maximum length:
140
Maximum length:
25
Maximum length:
140
Required string length:
3 - 25
Required string length:
5 - 100
Maximum length:
140
Maximum length:
240
Maximum length:
24
Response
200
application/json
Bill To For Shipment Created
Required string length:
3 - 24
Required string length:
4
Required range:
x > 0.01
Maximum length:
140
Maximum length:
140
Maximum length:
25
Maximum length:
140
Required string length:
3 - 25
Required string length:
5 - 100
Maximum length:
140
Maximum length:
240
Maximum length:
24
Was this page helpful?
curl --request POST \
--url https://prod01-apigw.{customer_name}.fabric.zone/api-cart/bill-to/cart/{cartId} \
--header 'Content-Type: application/json' \
--data '{
"paymentMethod": "Visa Credit",
"cardIdentifier": "1234",
"amount": 149.99,
"address": {
"attention": "Leave at the back door.",
"street1": "123 Main Street",
"street2": "ABC Boulevard",
"city": "Seattle",
"state": "WA",
"country": "United States of America",
"zipCode": "10008-1234",
"kind": "TBD",
"name": {
"first": "John",
"last": "Smith"
},
"phone": {
"number": "123-456-7890",
"kind": "Mobile"
},
"email": "johnsmith@fabric.inc"
}
}'
{
"paymentMethod": "Visa Credit",
"cardIdentifier": "1234",
"amount": 149.99,
"address": {
"attention": "Leave at the back door.",
"street1": "123 Main Street",
"street2": "ABC Boulevard",
"city": "Seattle",
"state": "WA",
"country": "United States of America",
"zipCode": "10008-1234",
"kind": "TBD",
"name": {
"first": "John",
"last": "Smith"
},
"phone": {
"number": "123-456-7890",
"kind": "Mobile"
},
"email": "johnsmith@fabric.inc"
},
"billToId": 1,
"cart": "5e5818a84d030c206b2ffb02",
"_id": "5fee9d59f2f08a1b3cbdea08",
"createdAt": "2020-12-31T02:09:53.914Z",
"updatedAt": "2020-12-31T02:09:53.914Z"
}