curl --request POST \
--url https://api.yorlet.com/v1/payment_initiations \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"amount": 123,
"currency": "gbp",
"type": "inbound_payment",
"inbound_payment": {
"type": "customer",
"customer": "<string>"
},
"metadata": {},
"reference": "<string>"
}
'{
"id": "<string>",
"created": 123,
"object": "payment_initiation",
"type": "inbound_payment",
"inbound_payment": {
"type": "customer",
"customer": "<string>"
},
"account": "<string>",
"deleted": false,
"amount": 123,
"currency": "gbp",
"reference": "<string>",
"metadata": {}
}Create a payment initiation request. Yorlet supports two types of payment initiation: type=inbound_payment initiates a payment from an external bank account to a bank account in Yorlet, and type=outbound_payment initiates a payment from your bank account to an external bank account.
curl --request POST \
--url https://api.yorlet.com/v1/payment_initiations \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"amount": 123,
"currency": "gbp",
"type": "inbound_payment",
"inbound_payment": {
"type": "customer",
"customer": "<string>"
},
"metadata": {},
"reference": "<string>"
}
'{
"id": "<string>",
"created": 123,
"object": "payment_initiation",
"type": "inbound_payment",
"inbound_payment": {
"type": "customer",
"customer": "<string>"
},
"account": "<string>",
"deleted": false,
"amount": 123,
"currency": "gbp",
"reference": "<string>",
"metadata": {}
}API Key authentication. Use "Bearer YOUR_API_KEY".
gbp, sek inbound_payment Show child attributes
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
Show child attributes
1 - 18^[a-zA-Z0-9]*$Returns the payment initiation object if the request succeeded.
Unique identifier for the object.
Time at which the object was created. Measured in seconds since the Unix epoch.
payment_initiation inbound_payment The inbound payment details
Show child attributes
The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header.
Only returned if the object has been deleted.
gbp, sek Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
Show child attributes
Was this page helpful?