POST
/
addons
curl --request POST \
  --url https://api.fabric.inc/v3/addons \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-fabric-tenant-id: <x-fabric-tenant-id>' \
  --data '{
  "name": "Tablet",
  "currency": "USD",
  "price": 458.87
}'
{
  "id": 100004,
  "name": "Tablet",
  "channelId": "12",
  "currency": "USD",
  "price": 458.87,
  "createdAt": "2019-08-20T14:15:22.000Z",
  "updatedAt": "2019-08-20T14:15:22.000Z",
  "isDeleted": false
}

Authorizations

Authorization
string
header
required

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

Headers

x-fabric-tenant-id
string
required

A header used by fabric to identify the tenant making the request. You must include tenant id in the authentication header for an API request to access any of fabric’s endpoints. You can retrieve the tenant id , which is also called account id, from Copilot. This header is required.

Required string length: 24
x-fabric-channel-id
string

x-fabric-channel-id identifies the sales channel where the API request is being made; primarily for multichannel use cases. The channel ids are 12 corresponding to US and 13 corresponding to Canada. The default channel id is 12. This field is required.

x-client-id
string

A unique identifier obtained from Copilot for the System app in the fabric ecosystem, essential for OpenID Connect authentication flows.

x-fabric-request-id
string

A unique request ID.

Body

application/json

The inputs to create or update an add-on.

currency
string
required

The currency value for add-on.

name
string
required

The name of the add-on.

price
number
required

The add-on price.

Response

201 - application/json

The details of add on.

createdAt
string
required

Record's creation time

currency
string
required

The currency type of add-on as defined by ISO-4217.

id
integer
required

The ID of the add-on.

isDeleted
boolean
required

true: Record is deleted<br>false: Record isn't deleted

name
string
required

The name of the add-on.

price
number
required

The price of an add-on.

updatedAt
string
required

Record's last updated time

channelId
string

The sales channel where the add-on is used for business.