6.1 Create Custom Links

Request

Method

URL

POST

/customlink/v1/products

{
  "name": "Magic Link Name",
  "description": "Magic Link Description",
  "channel": "1",
  "orderId": 1,
  "conversationId": "1",
  "externalId": "1",
  "status": "Active",
  "price": 29.99,
  "currency": "USD",
  "enabledInstallments": "[1,2]",
  "stock": 1,
  "image": "null"
}

Response

Status

Response

200

{

"data": {

"id": 162,

"name": "Magic Link Name",

"description": "Magic Link Description",

"orderId": "1",

"conversationId": "1",

"externalId": "1",

"status": "Active",

"price": 29.99,

"currency": "USD",

"stock": 1,

"soldCount": 0,

"token": null,

"enabledInstallments": [],

"url": null,

"imageUrl": null,

"channel": "1",

"custom_token": "http://tinyurl.com/yw8amt84"

}

}

403

400

400

401

401

500

Last updated