Update offer
Replace an offer's catalog definition. Existing offer applications keep their immutable accepted terms.
Replace an offer's catalog definition. Existing offer applications keep their immutable accepted terms.
Authorization
ApiKeyAuth In: header
Path Parameters
Header Parameters
Unique key used to safely retry this write for 24 hours without applying it twice.
1 <= length <= 200Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
1 <= length <= 200Value in
- "introductory"
- "promotional"
1 <= items1 <= items <= 10{}nullnulltrueResponse Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X PATCH "https://example.com/offers/string" \ -H "Content-Type: application/json" \ -d '{ "name": "string", "purpose": "introductory", "planPriceIds": [ "string" ], "phases": [ { "type": "free_trial", "durationDays": 1 } ] }'{ "id": "string", "name": "string", "purpose": "introductory", "planPriceIds": [ "string" ], "phases": [ { "type": "free_trial", "durationDays": 1 } ], "metadata": { "property1": null, "property2": null }, "startsAt": "2019-08-24T14:15:22Z", "endsAt": "2019-08-24T14:15:22Z", "active": true, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "object": "offer", "livemode": true}{ "error": { "type": "string", "code": "string", "message": "string", "param": "string", "details": null, "doc_url": "string" }}{ "error": { "type": "string", "code": "string", "message": "string", "param": "string", "details": null, "doc_url": "string" }}{ "error": { "type": "string", "code": "string", "message": "string", "param": "string", "details": null, "doc_url": "string" }}{ "error": { "type": "string", "code": "string", "message": "string", "param": "string", "details": null, "doc_url": "string" }}{ "error": { "type": "string", "code": "string", "message": "string", "param": "string", "details": null, "doc_url": "string" }}{ "error": { "type": "string", "code": "string", "message": "string", "param": "string", "details": null, "doc_url": "string" }}{ "error": { "type": "string", "code": "string", "message": "string", "param": "string", "details": null, "doc_url": "string" }}{ "error": { "type": "string", "code": "string", "message": "string", "param": "string", "details": null, "doc_url": "string" }}