Offers

Create an offer

Creates an offer of a variant at a price in the workspace’s currency.

Authorization

bearer catalogue:write
AuthorizationBearer <token>

A v1 API key; the scope named is the one the route needs.

In: header

Scope: catalogue:write

Header Parameters

Idempotency-Key*string

Names the act so a retry under it lands on the stored answer (idempotency-key).

Length1 <= length <= 255

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/problem+json

POST
/v1/offers
curl -X POST "https://example.com/v1/offers" \  -H "Idempotency-Key: string" \  -H "Content-Type: application/json" \  -d '{    "productId": "dcd53ddb-8104-4e48-8cc0-5df1088c6113",    "price": {      "amount": 0,      "currency": "string"    }  }'
{  "id": "string",  "liveMode": true,  "productId": "string",  "variantId": "string",  "name": "string",  "description": "string",  "status": "string",  "price": {    "amount": -9007199254740991,    "currency": "string"  },  "originalPrice": {    "amount": -9007199254740991,    "currency": "string"  },  "recurringInterval": "string",  "recurringIntervalCount": 1,  "trialInterval": "string",  "trialIntervalCount": 1,  "stockLimit": 0,  "stockAvailable": 0,  "externalId": "string",  "region": "string",  "platform": "string",  "gtin": "string",  "warningMessage": "string",  "mutableQuantity": true,  "coverImageKey": "string",  "coverImageUrl": "http://example.com",  "download": {    "fileName": "string",    "fileSize": 0,    "contentType": "string",    "description": "string",    "sha256Composite": "string"  },  "tags": [    {      "id": "string",      "name": "string"    }  ],  "archivedAt": "2019-08-24T14:15:22Z",  "createdAt": "2019-08-24T14:15:22Z",  "updatedAt": "2019-08-24T14:15:22Z"}