Coupons
Update a coupon
Changed onpatch/api/v1/coupons/{coupon_id}
Request
- The document declares no server URL.
- AuthHTTP bearer
Path parameters
coupon_idstring MeteroidId required
Example:cou_7n42DGM5Tflk9n8mt7Fhc7
Coupon ID
Request body
Example request
{
"plan_ids": [
"plan_7n42DGM5Tflk9n8mt7Fhc7"
]
}Response
Coupon updated
Example response
{
"id": "cou_7n42DGM5Tflk9n8mt7Fhc7",
"plan_ids": [
"plan_7n42DGM5Tflk9n8mt7Fhc7"
]
}Changes
- breaking
the response property
became nullable for the status - breaking
the response property
became optional for the status - info
added the optional property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status
- breaking
- breaking
removed from the
request propertyoneOflist - breaking
the
/////response's property format changed fromdecimalto no format for status - breaking
the
/////response's property format changed fromdecimalto no format for status - info
added to the
request propertyoneOflist - info
response discriminator property name changed for
response property fromdiscriminatortotypefor the response status
- breaking