Refunds API
Refunds with proof and the owner's approval, and the credit note.
The same operations are in the interactive API reference, and the whole contract is in the OpenAPI document.
GET/v1/refunds
List refunds
Refund cases of any phase, newest first. Needs refunds:read.
Scope refunds:read. Accepts: API key or personal access token. Open in the API reference
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
limit | query | integer | No | How many. Default 50. |
AirFone-Version | header | string | No | The API version to use, as a date. Defaults to the version the account was pinned to. |
POST/v1/refunds
Ask for a refund
Opens a case. The money can go back only to the person who paid and only after their payment cleared; the owner approves it before it is sent. Needs refunds:write.
Scope refunds:write. Accepts: API key or personal access token. Open in the API reference
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
AirFone-Version | header | string | No | The API version to use, as a date. Defaults to the version the account was pinned to. |
GET/v1/refunds/{id}
Get a refund
One case with its proof, what is still missing and the page the owner reads. Needs refunds:read.
Scope refunds:read. Accepts: API key or personal access token. Open in the API reference
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | The resource id. |
AirFone-Version | header | string | No | The API version to use, as a date. Defaults to the version the account was pinned to. |
POST/v1/refunds/{id}/evidence
Add proof
Attaches a piece of proof. Which kinds a reason needs is the workspace's own rule. Needs refunds:write.
Scope refunds:write. Accepts: API key or personal access token. Open in the API reference
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | The resource id. |
AirFone-Version | header | string | No | The API version to use, as a date. Defaults to the version the account was pinned to. |
POST/v1/refunds/{id}/submission
Send a refund for approval
Hands a ready case to the effect gateway as a money effect. It is held for the owner's approval, checked again to go only to the payer, and then run. Needs refunds:write.
Scope refunds:write. Accepts: API key or personal access token. Open in the API reference
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | The resource id. |
AirFone-Version | header | string | No | The API version to use, as a date. Defaults to the version the account was pinned to. |
POST/v1/refunds/{id}/credit-note
Ask for the credit note
Asks the billing system that issued the invoice for the credit note, once the money is back. A payment with no tax invoice closes without a number. Needs refunds:write.
Scope refunds:write. Accepts: API key or personal access token. Open in the API reference
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | The resource id. |
AirFone-Version | header | string | No | The API version to use, as a date. Defaults to the version the account was pinned to. |
POST/v1/refunds/{id}/exception
Send a refund to other details
The payer's own account cannot take the money. The case waits, and the answer carries the change of payee details to put through the held-change routes: a passkey proves it, it waits a day, and the contact saved first is called before it takes effect. Needs refunds:write.
Scope refunds:write. Accepts: API key or personal access token. Open in the API reference
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | The resource id. |
AirFone-Version | header | string | No | The API version to use, as a date. Defaults to the version the account was pinned to. |
POST/v1/refunds/{id}/exception/change
Tie a held change to a refund
Names the held change that carries the new details. The refund may go to the gateway only after the call-back confirmed that change for this payer. Needs refunds:write.
Scope refunds:write. Accepts: API key or personal access token. Open in the API reference
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | The resource id. |
AirFone-Version | header | string | No | The API version to use, as a date. Defaults to the version the account was pinned to. |