PATCH
/
v1
/
customers
/
{id}
/
subscriptions
curl --request PATCH \
  --url https://prod01.copilot.fabric.inc/data-subscription/v1/customers/{id}/subscriptions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "shipTo": {
    "name": {
      "firstName": "Pat",
      "middleName": "E",
      "lastName": "Kake"
    },
    "streetAddress": {
      "street1": "123 Main St",
      "street2": "Suite 100"
    },
    "city": "Boston",
    "state": "MA",
    "postalCode": "02127",
    "country": "US",
    "phone": {
      "number": "5555551234",
      "kind": "home"
    }
  },
  "billTo": {
    "name": {
      "firstName": "Pat",
      "middleName": "E",
      "lastName": "Kake"
    },
    "streetAddress": {
      "street1": "123 Main St",
      "street2": "Suite 100"
    },
    "city": "Boston",
    "state": "MA",
    "postalCode": "02127",
    "country": "US",
    "phone": {
      "number": "5555551234",
      "kind": "home"
    }
  }
}'
{
  "subscriptions": [
    {
      "item": {
        "sku": "MOBO-X570"
      }
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Customer ID

Body

application/json
Details for updating customer billing and shipping information

Details for updating customer billing and shipping information

shipTo
object

Ship-to address and phone details

billTo
object

Bill-to address and phone details

Response

200
application/json
Request processed successfully

Subscription details after updating customer billing and shipping information

subscriptions
object[]

Subscriptions associated with this customer