Order checkout (v4)
curl --request POST \
--url https://prod01-apigw.{customer_name}.fabric.zone/api-order/checkout-v4 \
--header 'Content-Type: application/json' \
--data '{
"cartId": "5e4876e10cfe1d8902005d33",
"customerAccountId": "5e3598e3007c5e00080d2bb8",
"customerEmail": "jsmith@example.com",
"customerPhoneNumber": {
"number": "123-456-7890",
"kind": "Mobile"
},
"paymentDetails": [
{
"billToId": 1000001,
"shipToId": [
1000001,
1000002
],
"transactionDetails": {
"paymentType": "CARD",
"tokenizedPaymentMethod": "12fyg3fv4dbb56bbd7dfb890123456",
"cardNumber": "1234567890123456",
"expDate": "0220",
"cvv": "123",
"cardHolderFullName": "Mr John Smith",
"metadata": {}
},
"paymentMethod": "Visa",
"paymentKind": "<string>",
"amount": 533.33,
"currency": "USD",
"conversion": 1.12,
"billToAddress": {
"name": {
"first": "John",
"middle": "Paul",
"last": "Smith"
},
"email": "johnsmith@fabric.inc",
"phone": {
"number": "123-456-7890",
"kind": "Mobile"
},
"street1": "10400 NE 4th St",
"street2": "Suite 500",
"city": "Bellevue",
"state": "WA",
"country": "USA",
"zipCode": "98004",
"kind": "Bill to address"
}
}
],
"estimatedTax": {
"itemsTaxes": [
{
"lineItemId": 2,
"amount": 20
}
],
"shipToTaxes": [
{
"shipToId": "5ec35a857e6cac8d99a57d3b",
"amount": 20
}
]
},
"shipFrom": {
"street1": "10400 NE 4th St",
"city": "Bellevue",
"state": "WA",
"country": "USA",
"zipCode": "98004"
}
}'
{
"checkoutComplete": true,
"pointOfFailure": "payment",
"paymentResp": {
"totalAmountCapturable": 100,
"orderTotal": 1001
}
}
"0LybWR49k95cCwYh3cu0waCYoh4H2Eux2J52wn4k"
Order checkout
The response is of type object
.
The response is of type object
.
The response is of type object
.
Was this page helpful?
curl --request POST \
--url https://prod01-apigw.{customer_name}.fabric.zone/api-order/checkout-v4 \
--header 'Content-Type: application/json' \
--data '{
"cartId": "5e4876e10cfe1d8902005d33",
"customerAccountId": "5e3598e3007c5e00080d2bb8",
"customerEmail": "jsmith@example.com",
"customerPhoneNumber": {
"number": "123-456-7890",
"kind": "Mobile"
},
"paymentDetails": [
{
"billToId": 1000001,
"shipToId": [
1000001,
1000002
],
"transactionDetails": {
"paymentType": "CARD",
"tokenizedPaymentMethod": "12fyg3fv4dbb56bbd7dfb890123456",
"cardNumber": "1234567890123456",
"expDate": "0220",
"cvv": "123",
"cardHolderFullName": "Mr John Smith",
"metadata": {}
},
"paymentMethod": "Visa",
"paymentKind": "<string>",
"amount": 533.33,
"currency": "USD",
"conversion": 1.12,
"billToAddress": {
"name": {
"first": "John",
"middle": "Paul",
"last": "Smith"
},
"email": "johnsmith@fabric.inc",
"phone": {
"number": "123-456-7890",
"kind": "Mobile"
},
"street1": "10400 NE 4th St",
"street2": "Suite 500",
"city": "Bellevue",
"state": "WA",
"country": "USA",
"zipCode": "98004",
"kind": "Bill to address"
}
}
],
"estimatedTax": {
"itemsTaxes": [
{
"lineItemId": 2,
"amount": 20
}
],
"shipToTaxes": [
{
"shipToId": "5ec35a857e6cac8d99a57d3b",
"amount": 20
}
]
},
"shipFrom": {
"street1": "10400 NE 4th St",
"city": "Bellevue",
"state": "WA",
"country": "USA",
"zipCode": "98004"
}
}'
{
"checkoutComplete": true,
"pointOfFailure": "payment",
"paymentResp": {
"totalAmountCapturable": 100,
"orderTotal": 1001
}
}
Order checkout (v4)
curl --request POST \
--url https://prod01-apigw.{customer_name}.fabric.zone/api-order/checkout-v4 \
--header 'Content-Type: application/json' \
--data '{
"cartId": "5e4876e10cfe1d8902005d33",
"customerAccountId": "5e3598e3007c5e00080d2bb8",
"customerEmail": "jsmith@example.com",
"customerPhoneNumber": {
"number": "123-456-7890",
"kind": "Mobile"
},
"paymentDetails": [
{
"billToId": 1000001,
"shipToId": [
1000001,
1000002
],
"transactionDetails": {
"paymentType": "CARD",
"tokenizedPaymentMethod": "12fyg3fv4dbb56bbd7dfb890123456",
"cardNumber": "1234567890123456",
"expDate": "0220",
"cvv": "123",
"cardHolderFullName": "Mr John Smith",
"metadata": {}
},
"paymentMethod": "Visa",
"paymentKind": "<string>",
"amount": 533.33,
"currency": "USD",
"conversion": 1.12,
"billToAddress": {
"name": {
"first": "John",
"middle": "Paul",
"last": "Smith"
},
"email": "johnsmith@fabric.inc",
"phone": {
"number": "123-456-7890",
"kind": "Mobile"
},
"street1": "10400 NE 4th St",
"street2": "Suite 500",
"city": "Bellevue",
"state": "WA",
"country": "USA",
"zipCode": "98004",
"kind": "Bill to address"
}
}
],
"estimatedTax": {
"itemsTaxes": [
{
"lineItemId": 2,
"amount": 20
}
],
"shipToTaxes": [
{
"shipToId": "5ec35a857e6cac8d99a57d3b",
"amount": 20
}
]
},
"shipFrom": {
"street1": "10400 NE 4th St",
"city": "Bellevue",
"state": "WA",
"country": "USA",
"zipCode": "98004"
}
}'
{
"checkoutComplete": true,
"pointOfFailure": "payment",
"paymentResp": {
"totalAmountCapturable": 100,
"orderTotal": 1001
}
}
"0LybWR49k95cCwYh3cu0waCYoh4H2Eux2J52wn4k"
Order checkout
The response is of type object
.
The response is of type object
.
The response is of type object
.
Was this page helpful?
curl --request POST \
--url https://prod01-apigw.{customer_name}.fabric.zone/api-order/checkout-v4 \
--header 'Content-Type: application/json' \
--data '{
"cartId": "5e4876e10cfe1d8902005d33",
"customerAccountId": "5e3598e3007c5e00080d2bb8",
"customerEmail": "jsmith@example.com",
"customerPhoneNumber": {
"number": "123-456-7890",
"kind": "Mobile"
},
"paymentDetails": [
{
"billToId": 1000001,
"shipToId": [
1000001,
1000002
],
"transactionDetails": {
"paymentType": "CARD",
"tokenizedPaymentMethod": "12fyg3fv4dbb56bbd7dfb890123456",
"cardNumber": "1234567890123456",
"expDate": "0220",
"cvv": "123",
"cardHolderFullName": "Mr John Smith",
"metadata": {}
},
"paymentMethod": "Visa",
"paymentKind": "<string>",
"amount": 533.33,
"currency": "USD",
"conversion": 1.12,
"billToAddress": {
"name": {
"first": "John",
"middle": "Paul",
"last": "Smith"
},
"email": "johnsmith@fabric.inc",
"phone": {
"number": "123-456-7890",
"kind": "Mobile"
},
"street1": "10400 NE 4th St",
"street2": "Suite 500",
"city": "Bellevue",
"state": "WA",
"country": "USA",
"zipCode": "98004",
"kind": "Bill to address"
}
}
],
"estimatedTax": {
"itemsTaxes": [
{
"lineItemId": 2,
"amount": 20
}
],
"shipToTaxes": [
{
"shipToId": "5ec35a857e6cac8d99a57d3b",
"amount": 20
}
]
},
"shipFrom": {
"street1": "10400 NE 4th St",
"city": "Bellevue",
"state": "WA",
"country": "USA",
"zipCode": "98004"
}
}'
{
"checkoutComplete": true,
"pointOfFailure": "payment",
"paymentResp": {
"totalAmountCapturable": 100,
"orderTotal": 1001
}
}