Create a coupon
Changed onRequest
- The document declares no server URL.
- AuthHTTP bearer
Request body
Example request
{
"plan_ids": [
"plan_7n42DGM5Tflk9n8mt7Fhc7"
]
}Response
Coupon created
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
mapped value for discriminator key
FIXEDchanged from to forrequest property - info
mapped value for discriminator key
PERCENTAGEchanged from to forrequest property - info
request discriminator property name changed for
request property fromdiscount_typetotype - info
added to the
request propertyoneOflist - info
response discriminator property name changed for
response property fromdiscriminatortotypefor the response status
- breaking