From e94f3af6b44c5bbd18897db4e36d1653e6867b52 Mon Sep 17 00:00:00 2001 From: Alex Phelps Date: Wed, 2 Oct 2024 13:57:25 +0700 Subject: [PATCH] update api spec files --- static/api/admin/2023-02-10.yaml | 276 +++++++++++++++++++++++++++++-- static/api/admin/2024-04-01.yaml | 276 +++++++++++++++++++++++++++++-- static/api/admin/unstable.yaml | 276 +++++++++++++++++++++++++++++-- 3 files changed, 798 insertions(+), 30 deletions(-) diff --git a/static/api/admin/2023-02-10.yaml b/static/api/admin/2023-02-10.yaml index be21150..9d57fa8 100644 --- a/static/api/admin/2023-02-10.yaml +++ b/static/api/admin/2023-02-10.yaml @@ -281,6 +281,43 @@ components: required: - cancel_reason type: object + CancelSubscription: + properties: + cancel_reason: + description: '* `not_satisfied_with_product` - Not satisfied with product + quality + + * `product_too_expensive` - Product is too expensive + + * `cancel_recurring` - Changed my mind, cancel recurring + + * `unwanted_subscription` - Didn''t intend to sign up for a subscription + + * `recurring_payment_declined` - Recurring payment declined + + * `disputed_cancel_recurring` - Disputed cancel recurring + + * `other` - Other' + enum: + - not_satisfied_with_product + - product_too_expensive + - cancel_recurring + - unwanted_subscription + - recurring_payment_declined + - disputed_cancel_recurring + - other + type: string + x-spec-enum-id: 5231bb14ef0f67ff + cancel_reason_other_message: + type: + - string + - 'null' + send_cancel_notification: + default: true + type: boolean + required: + - cancel_reason + type: object CancellationRequest: properties: message: @@ -694,14 +731,17 @@ components: * `attribution` - Attribution - * `product` - Product' + * `product` - Product + + * `dispute` - Dispute' enum: - order - customer - attribution - product + - dispute type: string - x-spec-enum-id: e1aaa18fa8fbb9a8 + x-spec-enum-id: c22481add7a5f601 type: description: 'Expected data type. @@ -771,6 +811,10 @@ components: id: readOnly: true type: integer + metadata: + oneOf: + - {} + - type: 'null' order: readOnly: true type: @@ -1924,14 +1968,17 @@ components: * `attribution` - Attribution - * `product` - Product' + * `product` - Product + + * `dispute` - Dispute' enum: - order - customer - attribution - product + - dispute type: string - x-spec-enum-id: e1aaa18fa8fbb9a8 + x-spec-enum-id: c22481add7a5f601 type: description: 'Expected data type. @@ -2011,6 +2058,10 @@ components: id: readOnly: true type: integer + metadata: + oneOf: + - {} + - type: 'null' order: readOnly: true type: @@ -4712,6 +4763,10 @@ components: id: readOnly: true type: integer + metadata: + oneOf: + - {} + - type: 'null' order: readOnly: true type: @@ -4822,14 +4877,17 @@ components: * `attribution` - Attribution - * `product` - Product' + * `product` - Product + + * `dispute` - Dispute' enum: - order - customer - attribution - product + - dispute type: string - x-spec-enum-id: e1aaa18fa8fbb9a8 + x-spec-enum-id: c22481add7a5f601 validations: items: $ref: '#/components/schemas/Validation' @@ -6612,6 +6670,58 @@ components: required: - amount type: object + ResolveDispute: + properties: + create_external_refund: + type: + - boolean + - 'null' + resolution: + description: '* `could_not_find_order` - Transaction Not found + + * `declined_or_canceled_nothing_to_do` - Nothing To Do + + * `issued_full_refund` - Issued Full Refund + + * `issued_refund_for_remaining_amount` - Refunded Remaining Amount + + * `3ds_authorized_successfully` - Transaction 3DS Authorized + + * `previously_refunded_nothing_to_do` - Previously Refunded + + * `unable_to_refund_merchant_account_closed` - Unable to Refund + + * `won` - Won + + * `lost` - Lost + + * `accepted` - Accepted + + * `other` - Other' + enum: + - could_not_find_order + - declined_or_canceled_nothing_to_do + - issued_full_refund + - issued_refund_for_remaining_amount + - 3ds_authorized_successfully + - previously_refunded_nothing_to_do + - unable_to_refund_merchant_account_closed + - won + - lost + - accepted + - other + - '' + - null + type: + - string + - 'null' + x-spec-enum-id: 8848f3a079993862 + resolution_other_message: + title: Other Message + type: + - string + - 'null' + type: object ResponseCreateGiftCard: properties: balance: @@ -7522,6 +7632,11 @@ components: format: decimal pattern: ^-?\d{0,10}(?:\.\d{0,2})?$ type: string + amount_available_for_refund: + default: '0.00' + format: decimal + pattern: ^-?\d{0,10}(?:\.\d{0,2})?$ + type: string attribution: allOf: - $ref: '#/components/schemas/MarketingAttribution' @@ -7617,6 +7732,11 @@ components: format: decimal pattern: ^-?\d{0,10}(?:\.\d{0,2})?$ type: string + amount_available_for_refund: + default: '0.00' + format: decimal + pattern: ^-?\d{0,10}(?:\.\d{0,2})?$ + type: string attribution: allOf: - $ref: '#/components/schemas/MarketingAttribution' @@ -7883,14 +8003,17 @@ components: * `attribution` - Attribution - * `product` - Product' + * `product` - Product + + * `dispute` - Dispute' enum: - order - customer - attribution - product + - dispute type: string - x-spec-enum-id: e1aaa18fa8fbb9a8 + x-spec-enum-id: c22481add7a5f601 validations: items: $ref: '#/components/schemas/Validation' @@ -10096,6 +10219,48 @@ paths: - disputes:write tags: - payments + /disputes/{id}/resolve/: + post: + description: Resolve a dispute with a resolution and optional external refund. + operationId: disputesResolveCreate + parameters: + - description: A unique integer value identifying this Dispute. + in: path + name: id + required: true + schema: + type: integer + - in: header + name: X-29next-API-Version + required: true + schema: + default: '2023-02-10' + enum: + - '2023-02-10' + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ResolveDispute' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/ResolveDispute' + multipart/form-data: + schema: + $ref: '#/components/schemas/ResolveDispute' + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Dispute' + description: '' + security: + - oauth2: + - disputes:write + tags: + - payments /fulfillment-orders/: get: description: Retrieve a list of fulfillment orders. @@ -11504,8 +11669,7 @@ paths: type: integer type: array style: form - - description: Fulfillment Location - explode: true + - explode: true in: query name: location_id schema: @@ -12232,6 +12396,42 @@ paths: - orders:write tags: - orders + /orders/{number}/fulfillments/{fulfillmentId}/: + get: + description: Retrieve an existing order fulfillment. + operationId: ordersFulfillmentRetrieve + parameters: + - in: path + name: number + required: true + schema: + title: Order number + type: string + - in: path + name: fulfillmentId + required: true + schema: + type: string + - in: header + name: X-29next-API-Version + required: true + schema: + default: '2023-02-10' + enum: + - '2023-02-10' + type: string + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/FulfillmentResponse' + description: '' + security: + - oauth2: + - orders:read + tags: + - orders /orders/{number}/fulfillments/{fulfillmentId}/events/: get: description: Retrieve a list of fulfillment events of a order fulfillment. @@ -13917,6 +14117,49 @@ paths: - subscriptions:write tags: - subscriptions + /subscriptions/{id}/cancel/: + post: + description: Cancel an existing subscription. + operationId: subscriptionsCancelCreate + parameters: + - description: A unique integer value identifying this Subscription. + in: path + name: id + required: true + schema: + type: integer + - in: header + name: X-29next-API-Version + required: true + schema: + default: '2023-02-10' + enum: + - '2023-02-10' + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CancelSubscription' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/CancelSubscription' + multipart/form-data: + schema: + $ref: '#/components/schemas/CancelSubscription' + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/SubscriptionDetail' + description: '' + security: + - oauth2: + - subscriptions:write + tags: + - subscriptions /subscriptions/{id}/lines/: post: description: Create a new subscription line. @@ -16935,6 +17178,10 @@ webhooks: type: string id: type: integer + metadata: + oneOf: + - {} + - type: 'null' order: type: - integer @@ -17126,6 +17373,10 @@ webhooks: type: string id: type: integer + metadata: + oneOf: + - {} + - type: 'null' order: type: - integer @@ -23446,6 +23697,11 @@ webhooks: format: decimal pattern: ^-?\d{0,10}(?:\.\d{0,2})?$ type: string + amount_available_for_refund: + default: '0.00' + format: decimal + pattern: ^-?\d{0,10}(?:\.\d{0,2})?$ + type: string attribution: properties: affiliate: diff --git a/static/api/admin/2024-04-01.yaml b/static/api/admin/2024-04-01.yaml index bcbb15f..5d10a0f 100644 --- a/static/api/admin/2024-04-01.yaml +++ b/static/api/admin/2024-04-01.yaml @@ -281,6 +281,43 @@ components: required: - cancel_reason type: object + CancelSubscription: + properties: + cancel_reason: + description: '* `not_satisfied_with_product` - Not satisfied with product + quality + + * `product_too_expensive` - Product is too expensive + + * `cancel_recurring` - Changed my mind, cancel recurring + + * `unwanted_subscription` - Didn''t intend to sign up for a subscription + + * `recurring_payment_declined` - Recurring payment declined + + * `disputed_cancel_recurring` - Disputed cancel recurring + + * `other` - Other' + enum: + - not_satisfied_with_product + - product_too_expensive + - cancel_recurring + - unwanted_subscription + - recurring_payment_declined + - disputed_cancel_recurring + - other + type: string + x-spec-enum-id: 5231bb14ef0f67ff + cancel_reason_other_message: + type: + - string + - 'null' + send_cancel_notification: + default: true + type: boolean + required: + - cancel_reason + type: object CancellationRequest: properties: message: @@ -716,14 +753,17 @@ components: * `attribution` - Attribution - * `product` - Product' + * `product` - Product + + * `dispute` - Dispute' enum: - order - customer - attribution - product + - dispute type: string - x-spec-enum-id: e1aaa18fa8fbb9a8 + x-spec-enum-id: c22481add7a5f601 type: description: 'Expected data type. @@ -793,6 +833,10 @@ components: id: readOnly: true type: integer + metadata: + oneOf: + - {} + - type: 'null' order: readOnly: true type: @@ -1936,14 +1980,17 @@ components: * `attribution` - Attribution - * `product` - Product' + * `product` - Product + + * `dispute` - Dispute' enum: - order - customer - attribution - product + - dispute type: string - x-spec-enum-id: e1aaa18fa8fbb9a8 + x-spec-enum-id: c22481add7a5f601 type: description: 'Expected data type. @@ -2023,6 +2070,10 @@ components: id: readOnly: true type: integer + metadata: + oneOf: + - {} + - type: 'null' order: readOnly: true type: @@ -4800,6 +4851,10 @@ components: id: readOnly: true type: integer + metadata: + oneOf: + - {} + - type: 'null' order: readOnly: true type: @@ -4910,14 +4965,17 @@ components: * `attribution` - Attribution - * `product` - Product' + * `product` - Product + + * `dispute` - Dispute' enum: - order - customer - attribution - product + - dispute type: string - x-spec-enum-id: e1aaa18fa8fbb9a8 + x-spec-enum-id: c22481add7a5f601 validations: items: $ref: '#/components/schemas/Validation' @@ -6659,6 +6717,58 @@ components: required: - amount type: object + ResolveDispute: + properties: + create_external_refund: + type: + - boolean + - 'null' + resolution: + description: '* `could_not_find_order` - Transaction Not found + + * `declined_or_canceled_nothing_to_do` - Nothing To Do + + * `issued_full_refund` - Issued Full Refund + + * `issued_refund_for_remaining_amount` - Refunded Remaining Amount + + * `3ds_authorized_successfully` - Transaction 3DS Authorized + + * `previously_refunded_nothing_to_do` - Previously Refunded + + * `unable_to_refund_merchant_account_closed` - Unable to Refund + + * `won` - Won + + * `lost` - Lost + + * `accepted` - Accepted + + * `other` - Other' + enum: + - could_not_find_order + - declined_or_canceled_nothing_to_do + - issued_full_refund + - issued_refund_for_remaining_amount + - 3ds_authorized_successfully + - previously_refunded_nothing_to_do + - unable_to_refund_merchant_account_closed + - won + - lost + - accepted + - other + - '' + - null + type: + - string + - 'null' + x-spec-enum-id: 8848f3a079993862 + resolution_other_message: + title: Other Message + type: + - string + - 'null' + type: object ResponseCreateGiftCard: properties: balance: @@ -7577,6 +7687,11 @@ components: format: decimal pattern: ^-?\d{0,10}(?:\.\d{0,2})?$ type: string + amount_available_for_refund: + default: '0.00' + format: decimal + pattern: ^-?\d{0,10}(?:\.\d{0,2})?$ + type: string attribution: allOf: - $ref: '#/components/schemas/MarketingAttribution' @@ -7672,6 +7787,11 @@ components: format: decimal pattern: ^-?\d{0,10}(?:\.\d{0,2})?$ type: string + amount_available_for_refund: + default: '0.00' + format: decimal + pattern: ^-?\d{0,10}(?:\.\d{0,2})?$ + type: string attribution: allOf: - $ref: '#/components/schemas/MarketingAttribution' @@ -7938,14 +8058,17 @@ components: * `attribution` - Attribution - * `product` - Product' + * `product` - Product + + * `dispute` - Dispute' enum: - order - customer - attribution - product + - dispute type: string - x-spec-enum-id: e1aaa18fa8fbb9a8 + x-spec-enum-id: c22481add7a5f601 validations: items: $ref: '#/components/schemas/Validation' @@ -10154,6 +10277,48 @@ paths: - disputes:write tags: - payments + /disputes/{id}/resolve/: + post: + description: Resolve a dispute with a resolution and optional external refund. + operationId: disputesResolveCreate + parameters: + - description: A unique integer value identifying this Dispute. + in: path + name: id + required: true + schema: + type: integer + - in: header + name: X-29next-API-Version + required: true + schema: + default: '2024-04-01' + enum: + - '2024-04-01' + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ResolveDispute' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/ResolveDispute' + multipart/form-data: + schema: + $ref: '#/components/schemas/ResolveDispute' + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Dispute' + description: '' + security: + - oauth2: + - disputes:write + tags: + - payments /fulfillment-orders/: get: description: Retrieve a list of fulfillment orders. @@ -11562,8 +11727,7 @@ paths: type: integer type: array style: form - - description: Fulfillment Location - explode: true + - explode: true in: query name: location_id schema: @@ -12290,6 +12454,42 @@ paths: - orders:write tags: - orders + /orders/{number}/fulfillments/{fulfillmentId}/: + get: + description: Retrieve an existing order fulfillment. + operationId: ordersFulfillmentRetrieve + parameters: + - in: path + name: number + required: true + schema: + title: Order number + type: string + - in: path + name: fulfillmentId + required: true + schema: + type: string + - in: header + name: X-29next-API-Version + required: true + schema: + default: '2024-04-01' + enum: + - '2024-04-01' + type: string + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/FulfillmentResponse' + description: '' + security: + - oauth2: + - orders:read + tags: + - orders /orders/{number}/fulfillments/{fulfillmentId}/events/: get: description: Retrieve a list of fulfillment events of a order fulfillment. @@ -13971,6 +14171,49 @@ paths: - subscriptions:write tags: - subscriptions + /subscriptions/{id}/cancel/: + post: + description: Cancel an existing subscription. + operationId: subscriptionsCancelCreate + parameters: + - description: A unique integer value identifying this Subscription. + in: path + name: id + required: true + schema: + type: integer + - in: header + name: X-29next-API-Version + required: true + schema: + default: '2024-04-01' + enum: + - '2024-04-01' + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CancelSubscription' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/CancelSubscription' + multipart/form-data: + schema: + $ref: '#/components/schemas/CancelSubscription' + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/SubscriptionDetail' + description: '' + security: + - oauth2: + - subscriptions:write + tags: + - subscriptions /subscriptions/{id}/lines/: post: description: Create a new subscription line. @@ -16888,6 +17131,10 @@ webhooks: type: string id: type: integer + metadata: + oneOf: + - {} + - type: 'null' order: type: - integer @@ -17079,6 +17326,10 @@ webhooks: type: string id: type: integer + metadata: + oneOf: + - {} + - type: 'null' order: type: - integer @@ -23395,6 +23646,11 @@ webhooks: format: decimal pattern: ^-?\d{0,10}(?:\.\d{0,2})?$ type: string + amount_available_for_refund: + default: '0.00' + format: decimal + pattern: ^-?\d{0,10}(?:\.\d{0,2})?$ + type: string attribution: properties: affiliate: diff --git a/static/api/admin/unstable.yaml b/static/api/admin/unstable.yaml index 8d4763e..f2cb235 100644 --- a/static/api/admin/unstable.yaml +++ b/static/api/admin/unstable.yaml @@ -281,6 +281,43 @@ components: required: - cancel_reason type: object + CancelSubscription: + properties: + cancel_reason: + description: '* `not_satisfied_with_product` - Not satisfied with product + quality + + * `product_too_expensive` - Product is too expensive + + * `cancel_recurring` - Changed my mind, cancel recurring + + * `unwanted_subscription` - Didn''t intend to sign up for a subscription + + * `recurring_payment_declined` - Recurring payment declined + + * `disputed_cancel_recurring` - Disputed cancel recurring + + * `other` - Other' + enum: + - not_satisfied_with_product + - product_too_expensive + - cancel_recurring + - unwanted_subscription + - recurring_payment_declined + - disputed_cancel_recurring + - other + type: string + x-spec-enum-id: 5231bb14ef0f67ff + cancel_reason_other_message: + type: + - string + - 'null' + send_cancel_notification: + default: true + type: boolean + required: + - cancel_reason + type: object CancellationRequest: properties: message: @@ -716,14 +753,17 @@ components: * `attribution` - Attribution - * `product` - Product' + * `product` - Product + + * `dispute` - Dispute' enum: - order - customer - attribution - product + - dispute type: string - x-spec-enum-id: e1aaa18fa8fbb9a8 + x-spec-enum-id: c22481add7a5f601 type: description: 'Expected data type. @@ -793,6 +833,10 @@ components: id: readOnly: true type: integer + metadata: + oneOf: + - {} + - type: 'null' order: readOnly: true type: @@ -1936,14 +1980,17 @@ components: * `attribution` - Attribution - * `product` - Product' + * `product` - Product + + * `dispute` - Dispute' enum: - order - customer - attribution - product + - dispute type: string - x-spec-enum-id: e1aaa18fa8fbb9a8 + x-spec-enum-id: c22481add7a5f601 type: description: 'Expected data type. @@ -2023,6 +2070,10 @@ components: id: readOnly: true type: integer + metadata: + oneOf: + - {} + - type: 'null' order: readOnly: true type: @@ -4800,6 +4851,10 @@ components: id: readOnly: true type: integer + metadata: + oneOf: + - {} + - type: 'null' order: readOnly: true type: @@ -4910,14 +4965,17 @@ components: * `attribution` - Attribution - * `product` - Product' + * `product` - Product + + * `dispute` - Dispute' enum: - order - customer - attribution - product + - dispute type: string - x-spec-enum-id: e1aaa18fa8fbb9a8 + x-spec-enum-id: c22481add7a5f601 validations: items: $ref: '#/components/schemas/Validation' @@ -6659,6 +6717,58 @@ components: required: - amount type: object + ResolveDispute: + properties: + create_external_refund: + type: + - boolean + - 'null' + resolution: + description: '* `could_not_find_order` - Transaction Not found + + * `declined_or_canceled_nothing_to_do` - Nothing To Do + + * `issued_full_refund` - Issued Full Refund + + * `issued_refund_for_remaining_amount` - Refunded Remaining Amount + + * `3ds_authorized_successfully` - Transaction 3DS Authorized + + * `previously_refunded_nothing_to_do` - Previously Refunded + + * `unable_to_refund_merchant_account_closed` - Unable to Refund + + * `won` - Won + + * `lost` - Lost + + * `accepted` - Accepted + + * `other` - Other' + enum: + - could_not_find_order + - declined_or_canceled_nothing_to_do + - issued_full_refund + - issued_refund_for_remaining_amount + - 3ds_authorized_successfully + - previously_refunded_nothing_to_do + - unable_to_refund_merchant_account_closed + - won + - lost + - accepted + - other + - '' + - null + type: + - string + - 'null' + x-spec-enum-id: 8848f3a079993862 + resolution_other_message: + title: Other Message + type: + - string + - 'null' + type: object ResponseCreateGiftCard: properties: balance: @@ -7577,6 +7687,11 @@ components: format: decimal pattern: ^-?\d{0,10}(?:\.\d{0,2})?$ type: string + amount_available_for_refund: + default: '0.00' + format: decimal + pattern: ^-?\d{0,10}(?:\.\d{0,2})?$ + type: string attribution: allOf: - $ref: '#/components/schemas/MarketingAttribution' @@ -7672,6 +7787,11 @@ components: format: decimal pattern: ^-?\d{0,10}(?:\.\d{0,2})?$ type: string + amount_available_for_refund: + default: '0.00' + format: decimal + pattern: ^-?\d{0,10}(?:\.\d{0,2})?$ + type: string attribution: allOf: - $ref: '#/components/schemas/MarketingAttribution' @@ -7938,14 +8058,17 @@ components: * `attribution` - Attribution - * `product` - Product' + * `product` - Product + + * `dispute` - Dispute' enum: - order - customer - attribution - product + - dispute type: string - x-spec-enum-id: e1aaa18fa8fbb9a8 + x-spec-enum-id: c22481add7a5f601 validations: items: $ref: '#/components/schemas/Validation' @@ -10154,6 +10277,48 @@ paths: - disputes:write tags: - payments + /disputes/{id}/resolve/: + post: + description: Resolve a dispute with a resolution and optional external refund. + operationId: disputesResolveCreate + parameters: + - description: A unique integer value identifying this Dispute. + in: path + name: id + required: true + schema: + type: integer + - in: header + name: X-29next-API-Version + required: true + schema: + default: unstable + enum: + - unstable + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ResolveDispute' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/ResolveDispute' + multipart/form-data: + schema: + $ref: '#/components/schemas/ResolveDispute' + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Dispute' + description: '' + security: + - oauth2: + - disputes:write + tags: + - payments /fulfillment-orders/: get: description: Retrieve a list of fulfillment orders. @@ -11562,8 +11727,7 @@ paths: type: integer type: array style: form - - description: Fulfillment Location - explode: true + - explode: true in: query name: location_id schema: @@ -12290,6 +12454,42 @@ paths: - orders:write tags: - orders + /orders/{number}/fulfillments/{fulfillmentId}/: + get: + description: Retrieve an existing order fulfillment. + operationId: ordersFulfillmentRetrieve + parameters: + - in: path + name: number + required: true + schema: + title: Order number + type: string + - in: path + name: fulfillmentId + required: true + schema: + type: string + - in: header + name: X-29next-API-Version + required: true + schema: + default: unstable + enum: + - unstable + type: string + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/FulfillmentResponse' + description: '' + security: + - oauth2: + - orders:read + tags: + - orders /orders/{number}/fulfillments/{fulfillmentId}/events/: get: description: Retrieve a list of fulfillment events of a order fulfillment. @@ -13971,6 +14171,49 @@ paths: - subscriptions:write tags: - subscriptions + /subscriptions/{id}/cancel/: + post: + description: Cancel an existing subscription. + operationId: subscriptionsCancelCreate + parameters: + - description: A unique integer value identifying this Subscription. + in: path + name: id + required: true + schema: + type: integer + - in: header + name: X-29next-API-Version + required: true + schema: + default: unstable + enum: + - unstable + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CancelSubscription' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/CancelSubscription' + multipart/form-data: + schema: + $ref: '#/components/schemas/CancelSubscription' + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/SubscriptionDetail' + description: '' + security: + - oauth2: + - subscriptions:write + tags: + - subscriptions /subscriptions/{id}/lines/: post: description: Create a new subscription line. @@ -16888,6 +17131,10 @@ webhooks: type: string id: type: integer + metadata: + oneOf: + - {} + - type: 'null' order: type: - integer @@ -17079,6 +17326,10 @@ webhooks: type: string id: type: integer + metadata: + oneOf: + - {} + - type: 'null' order: type: - integer @@ -23395,6 +23646,11 @@ webhooks: format: decimal pattern: ^-?\d{0,10}(?:\.\d{0,2})?$ type: string + amount_available_for_refund: + default: '0.00' + format: decimal + pattern: ^-?\d{0,10}(?:\.\d{0,2})?$ + type: string attribution: properties: affiliate: