curl --request POST \
--url https://api.yorlet.com/v1/payment_method_sessions \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"customer": "<string>",
"payment_method_types": [
"autogiro"
],
"metadata": {},
"return_url": "<string>",
"send_email": true,
"subscription": "<string>"
}
'{
"id": "<string>",
"created": 123,
"object": "payment_method_session",
"customer": "<string>",
"payment_method": "<string>",
"payment_method_types": [
"autogiro"
],
"return_url": "<string>",
"status": "requires_payment_method",
"subscription": "<string>",
"url": "<string>",
"account": "<string>",
"deleted": false,
"merchant": {
"business_name": "<string>",
"color": "<string>",
"country": "<string>",
"display_name": "<string>",
"icon": "<string>",
"id": "<string>",
"support_email": "<string>",
"support_phone": "<string>",
"support_website": "<string>"
},
"metadata": {}
}Create a new payment method session.
curl --request POST \
--url https://api.yorlet.com/v1/payment_method_sessions \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"customer": "<string>",
"payment_method_types": [
"autogiro"
],
"metadata": {},
"return_url": "<string>",
"send_email": true,
"subscription": "<string>"
}
'{
"id": "<string>",
"created": 123,
"object": "payment_method_session",
"customer": "<string>",
"payment_method": "<string>",
"payment_method_types": [
"autogiro"
],
"return_url": "<string>",
"status": "requires_payment_method",
"subscription": "<string>",
"url": "<string>",
"account": "<string>",
"deleted": false,
"merchant": {
"business_name": "<string>",
"color": "<string>",
"country": "<string>",
"display_name": "<string>",
"icon": "<string>",
"id": "<string>",
"support_email": "<string>",
"support_phone": "<string>",
"support_website": "<string>"
},
"metadata": {}
}API Key authentication. Use "Bearer YOUR_API_KEY".
1autogiro, bacs_debit, card, card_present, bank_transfer, direct_transfer, gbp_credit_transfer, pay_by_bank, sepa_debit 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
Returns the payment method session 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_method_session autogiro, bacs_debit, card, card_present, bank_transfer, direct_transfer, gbp_credit_transfer, pay_by_bank, sepa_debit requires_payment_method, succeeded 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.
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
Was this page helpful?