Offers

Update an offer

Update an existing offer's details. Can modify name, price, and settings. Note that changing pricing on an active offer may affect existing subscription customers depending on your configuration. An offer priced in several currencies answers 409 to a change of its price, currency or billing interval; sending its current values back, or leaving them out, still saves the other fields.

Authorization

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

In: header

x-fngs-secret-key<token>

In: header

Request Body

application/json

PATCH /v0/offers/:offerId/update Request body

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

PATCH
/v0/offers/{offerId}/update
curl -X PATCH "https://example.com/v0/offers/{offerId}/update" \  -H "Content-Type: application/json" \  -d '{    "id": "550e8400-e29b-41d4-a716-446655440000"  }'
{  "status": "success",  "data": {    "offer": {      "object": "offer",      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "internalId": null,      "price": -1.7976931348623157e+308,      "originalPrice": null,      "recurringInterval": "day",      "recurringIntervalCount": null,      "trialInterval": "day",      "trialIntervalCount": null,      "currency": "AFN",      "limit": null,      "soldItems": 0,      "status": "DRAFT",      "name": null,      "description": null,      "region": "Global",      "platform": "Meta Quest",      "gtin": null,      "warningMessage": null    }  }}