DELETE

https://prod01-apigw.{customer_name}.fabric.zone

/
api-payment
/
cart
/
{cartId}
/
payment
/
{paymentId}
{
  "billToAddress": {
    "name": {
      "first": "John",
      "last": "Smith"
    },
    "email": "user1@gmail.com",
    "phone": {
      "number": "3334445555",
      "kind": "Mobile"
    },
    "street1": "1000 main street",
    "street2": "1000 main street",
    "city": "Seattle",
    "state": "WA",
    "country": "US",
    "zipCode": "98101"
  },
  "_id": "5fee9d59f2f08a1b3cbdea08",
  "createdAt": "2020-12-31T02:09:53.914Z",
  "updatedAt": "2020-12-31T02:09:53.914Z",
  "paymentDetails": {
    "transactionDetails": {
      "paymentType": "CARD_STRIPE",
      "paymentToken": "pi_1IyMGc2YBvYaVyBQNkOiCE3E"
    },
    "paymentStatus": {
      "cardHolderFullName": "First Last",
      "paymentMethod": "visa",
      "last4": "4242",
      "amountCapturable": 99900,
      "status": "succeeded"
    },
    "amount": 999,
    "currency": "USD"
  },
  "version": 0,
  "cartId": "60b90dd7308ded0008ee3c5d",
  "isValid": false,
  "__v": 0
}

Headers

x-site-context
string
required

The x-site-context header is a JSON object that contains information about the source you wish to pull from. The mandatory account is the 24 character identifier found in Copilot. The channel (Sales channel ID), stage (environment name), and date attributes can be used to further narrow the scope of your data source.

Path Parameters

cartId
string
required

Cart ID

paymentId
string
required

Payment Id.

Response

200 - application/json
billToAddress
object
required
_id
string
createdAt
string
updatedAt
string
paymentDetails
object
version
number
cartId
string
isValid
boolean
__v
number