Authorizations
The access token received from the authorization server in the OAuth 2.0 flow.
Body
application/json
Example:
"XXX"
Available options:
TRANSFER
, PAYOUT
Example:
"USD"
Response
OK
curl --request POST \
--url http://localhost/api/payments/transfer-initiations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"reference": "XXX",
"scheduledAt": "2023-11-07T05:31:56Z",
"description": "<string>",
"sourceAccountID": "<string>",
"destinationAccountID": "<string>",
"connectorID": "<string>",
"type": "TRANSFER",
"amount": 123,
"asset": "USD",
"validated": true,
"metadata": {}
}'
{
"data": {
"id": "XXX",
"reference": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"scheduledAt": "2023-11-07T05:31:56Z",
"description": "<string>",
"sourceAccountID": "<string>",
"destinationAccountID": "<string>",
"connectorID": "<string>",
"provider": "<string>",
"type": "TRANSFER",
"amount": 123,
"initialAmount": 123,
"asset": "USD",
"status": "WAITING_FOR_VALIDATION",
"error": "<string>",
"metadata": {},
"relatedPayments": [
{
"paymentID": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"status": "PENDING",
"error": "<string>"
}
],
"relatedAdjustments": [
{
"adjustmentID": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"status": "WAITING_FOR_VALIDATION",
"error": "<string>",
"metadata": {}
}
]
}
}
Create a transfer initiation
curl --request POST \
--url http://localhost/api/payments/transfer-initiations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"reference": "XXX",
"scheduledAt": "2023-11-07T05:31:56Z",
"description": "<string>",
"sourceAccountID": "<string>",
"destinationAccountID": "<string>",
"connectorID": "<string>",
"type": "TRANSFER",
"amount": 123,
"asset": "USD",
"validated": true,
"metadata": {}
}'
{
"data": {
"id": "XXX",
"reference": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"scheduledAt": "2023-11-07T05:31:56Z",
"description": "<string>",
"sourceAccountID": "<string>",
"destinationAccountID": "<string>",
"connectorID": "<string>",
"provider": "<string>",
"type": "TRANSFER",
"amount": 123,
"initialAmount": 123,
"asset": "USD",
"status": "WAITING_FOR_VALIDATION",
"error": "<string>",
"metadata": {},
"relatedPayments": [
{
"paymentID": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"status": "PENDING",
"error": "<string>"
}
],
"relatedAdjustments": [
{
"adjustmentID": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"status": "WAITING_FOR_VALIDATION",
"error": "<string>",
"metadata": {}
}
]
}
}
The access token received from the authorization server in the OAuth 2.0 flow.
"XXX"
TRANSFER
, PAYOUT
"USD"
Show child attributes
OK
Show child attributes