Offers

Add product keys

Add product keys (license keys, game keys, etc.) to an offer. Keys are automatically assigned to customers upon successful purchase. Each key can only be used once.

Authorization

Public key Secret key
x-fngs-public-key<token>

In: header

x-fngs-secret-key<token>

In: header

Path Parameters

offerId*string

POST /v0/offers/:offerId/keys/add Parameter

Formatuuid

Request Body

application/json

POST /v0/offers/:offerId/keys/add Request body

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

POST
/v0/offers/{offerId}/keys/add
curl -X POST "https://example.com/v0/offers/497f6eca-6276-4993-bfeb-53cbbbba6f08/keys/add" \  -H "Content-Type: application/json" \  -d '{    "productId": "dcd53ddb-8104-4e48-8cc0-5df1088c6113",    "productKeys": [      "string"    ]  }'
{  "status": "success",  "data": {    "success": true  }}