V1
Refunds
Billing API for managing billing refunds
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| body | body | RefundRequestDTO | true | ‘none’ |
| orgId | path | string | true | Executes the request in the context of the given organization |
| subscriptionId | path | string | true | Executes the request in the context of the given subscription |
| movementId | path | string | true | Executes the request in the context of the given billing movement |
Request body - instance of RefundRequestDTO
|
|
| Name | Type | Required | Description |
|---|---|---|---|
| refund_datetime | string(date-time) | true | none |
| period_start_datetime | string(date-time) | false | none |
| period_end_datetime | string(date-time) | false | none |
| amount | AmountRequestDTO | true | none |
| external_invoice_id | string | false | none |
| external_refund_unique_id | string | true | none |
| billable | boolean | true | none |
| description | string | true | none |
Request example
|
|
Responses
| Code | Meaning | Description | Schema |
|---|---|---|---|
| 201 | Created | Resource created | GenericCreatedResponseDTO |
| 400 | Bad Request | The request could not be processed because it was malformed | GenericResponseDTO |
| 401 | Unauthorized | The user is not authorized | GenericResponseDTO |
| 403 | Forbidden | The user does not have permission to access that resource | GenericResponseDTO |
| 404 | Not Found | The specified resource was not found | GenericResponseDTO |
| 500 | Internal Server Error | The request failed to be processed by the server | GenericResponseDTO |
| 502 | Bad Gateway | A third party connection is not responding | GenericResponseDTO |
| 504 | Gateway Time-out | The request timed out | GenericResponseDTO |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| orgId | path | string | true | Executes the request in the context of the given organization |
| subscriptionId | path | string | true | Executes the request in the context of the given subscription |
| movementId | path | string | true | Executes the request in the context of the given billing movement |
| refundId | path | string | true | Executes the request in the context of the given billing refund |
Request example
|
|
Responses
| Code | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Retrieve a billing refund | RefundResponseDTO |
| 400 | Bad Request | The request could not be processed because it was malformed | GenericResponseDTO |
| 401 | Unauthorized | The user is not authorized | GenericResponseDTO |
| 403 | Forbidden | The user does not have permission to access that resource | GenericResponseDTO |
| 404 | Not Found | The specified resource was not found | GenericResponseDTO |
| 500 | Internal Server Error | The request failed to be processed by the server | GenericResponseDTO |
| 502 | Bad Gateway | A third party connection is not responding | GenericResponseDTO |
| 504 | Gateway Time-out | The request timed out | GenericResponseDTO |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| body | body | RefundRequestDTO | true | ‘none’ |
| orgId | path | string | true | Executes the request in the context of the given organization |
| subscriptionId | path | string | true | Executes the request in the context of the given subscription |
| movementId | path | string | true | Executes the request in the context of the given billing movement |
| refundId | path | string | true | Executes the request in the context of the given billing refund |
Request body - instance of RefundRequestDTO
|
|
| Name | Type | Required | Description |
|---|---|---|---|
| refund_datetime | string(date-time) | true | none |
| period_start_datetime | string(date-time) | false | none |
| period_end_datetime | string(date-time) | false | none |
| amount | AmountRequestDTO | true | none |
| external_invoice_id | string | false | none |
| external_refund_unique_id | string | true | none |
| billable | boolean | true | none |
| description | string | true | none |
Request example
|
|
Responses
| Code | Meaning | Description | Schema |
|---|---|---|---|
| 204 | No Content | Ok with empty body | None |
| 400 | Bad Request | The request could not be processed because it was malformed | GenericResponseDTO |
| 401 | Unauthorized | The user is not authorized | GenericResponseDTO |
| 403 | Forbidden | The user does not have permission to access that resource | GenericResponseDTO |
| 404 | Not Found | The specified resource was not found | GenericResponseDTO |
| 500 | Internal Server Error | The request failed to be processed by the server | GenericResponseDTO |
| 502 | Bad Gateway | A third party connection is not responding | GenericResponseDTO |
| 504 | Gateway Time-out | The request timed out | GenericResponseDTO |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| orgId | path | string | true | Executes the request in the context of the given organization |
| subscriptionId | path | string | true | Executes the request in the context of the given subscription |
| movementId | path | string | true | Executes the request in the context of the given billing movement |
| refundId | path | string | true | Executes the request in the context of the given billing refund |
Request example
|
|
Responses
| Code | Meaning | Description | Schema |
|---|---|---|---|
| 204 | No Content | Ok with empty body | None |
| 400 | Bad Request | The request could not be processed because it was malformed | GenericResponseDTO |
| 401 | Unauthorized | The user is not authorized | GenericResponseDTO |
| 403 | Forbidden | The user does not have permission to access that resource | GenericResponseDTO |
| 404 | Not Found | The specified resource was not found | GenericResponseDTO |
| 500 | Internal Server Error | The request failed to be processed by the server | GenericResponseDTO |
| 502 | Bad Gateway | A third party connection is not responding | GenericResponseDTO |
| 504 | Gateway Time-out | The request timed out | GenericResponseDTO |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| body | body | RefundNonSubscribableProductsRequestDTO | true | ‘none’ |
| orgId | path | string | true | Executes the request in the context of the given organization |
| subscriptionId | path | string | true | Executes the request in the context of the given subscription |
| movementId | path | string | true | Executes the request in the context of the given billing movement |
Request body - instance of RefundNonSubscribableProductsRequestDTO
|
|
| Name | Type | Required | Description |
|---|---|---|---|
| refund_datetime | string(date-time) | true | none |
| period_start_datetime | string(date-time) | false | none |
| period_end_datetime | string(date-time) | false | none |
| amount | BillableAmountRequestDTO | true | none |
| external_invoice_id | string | false | none |
| external_refund_unique_id | string | false | none |
| transaction_type_id | string | true | none |
| description | string | true | none |
Request example
|
|
Responses
| Code | Meaning | Description | Schema |
|---|---|---|---|
| 201 | Created | Resource created | GenericCreatedResponseDTO |
| 400 | Bad Request | The request could not be processed because it was malformed | GenericResponseDTO |
| 401 | Unauthorized | The user is not authorized | GenericResponseDTO |
| 403 | Forbidden | The user does not have permission to access that resource | GenericResponseDTO |
| 404 | Not Found | The specified resource was not found | GenericResponseDTO |
| 500 | Internal Server Error | The request failed to be processed by the server | GenericResponseDTO |
| 502 | Bad Gateway | A third party connection is not responding | GenericResponseDTO |
| 504 | Gateway Time-out | The request timed out | GenericResponseDTO |
Endpoints
Consumptions
Movements
Refunds
Invoices
LocationTax
BillingInfo