curl --request POST \
--url https://api.yorlet.com/v1/payment_methods \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"customer": "<string>",
"type": "alipay"
}
'{
"id": "<string>",
"created": 123,
"object": "payment_method",
"billing_details": {
"address": {
"line1": "<string>",
"line2": "<string>",
"city": "<string>",
"country": "<string>",
"postal_code": "<string>",
"state": "<string>"
},
"email": "<string>",
"name": "<string>",
"phone": "<string>"
},
"customer": "<string>",
"status": "chargeable",
"type": "bacs_debit",
"bacs_debit": {
"fingerprint": "<string>",
"last4": "<string>",
"sort_code": "<string>"
},
"account": "<string>",
"deleted": false
}Creates a new payment method.
curl --request POST \
--url https://api.yorlet.com/v1/payment_methods \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"customer": "<string>",
"type": "alipay"
}
'{
"id": "<string>",
"created": 123,
"object": "payment_method",
"billing_details": {
"address": {
"line1": "<string>",
"line2": "<string>",
"city": "<string>",
"country": "<string>",
"postal_code": "<string>",
"state": "<string>"
},
"email": "<string>",
"name": "<string>",
"phone": "<string>"
},
"customer": "<string>",
"status": "chargeable",
"type": "bacs_debit",
"bacs_debit": {
"fingerprint": "<string>",
"last4": "<string>",
"sort_code": "<string>"
},
"account": "<string>",
"deleted": false
}API Key authentication. Use "Bearer YOUR_API_KEY".
Returns a payment method object if successful.
The Bacs debit payment method.
Unique identifier for the object.
Time at which the object was created. Measured in seconds since the Unix epoch.
payment_method Show child attributes
chargeable, pending, failed, null bacs_debit 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.
Was this page helpful?