curl --request POST \
--url https://api.yorlet.com/v1/transactions \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"customer": "<string>",
"payment_method_types": [
"autogiro"
],
"application": "<string>",
"application_payment_type": "advance_rent",
"amount": 49999950,
"capture_method": "automatic",
"confirm": false,
"currency": "gbp",
"customer_balance": {
"apply": false,
"description": "<string>"
},
"description": "<string>",
"invoice": "<string>",
"metadata": {},
"off_session": false,
"payment_method": "<string>",
"reporting_type": "advance_rent",
"return_url": "<string>",
"send_receipt_email": true,
"statement_descriptor": "<string>",
"unit": "<string>",
"workspace": "<string>"
}
'{
"id": "<string>",
"created": 123,
"object": "transaction",
"adaptive_pricing": {
"localized_prices": [
{
"amount": 123,
"currency": "<string>",
"presentment_exchange_rate": {
"currency": "<string>",
"exchange_rate": 123
}
}
]
},
"amount": 123,
"application": "<string>",
"balance_transaction": "<string>",
"capture_method": "automatic",
"client_secret": "<string>",
"confirmed_at": 123,
"cross_border": {
"amount": 123,
"enabled": true
},
"currency": "<string>",
"customer": "<string>",
"description": "<string>",
"dispute": "<string>",
"invoice": "<string>",
"last_payment_error": {
"code": "<string>",
"failed_at": 123,
"message": "<string>"
},
"next_action": {
"type": "redirect_to_url",
"redirect_to_url": {
"url": "<string>"
}
},
"paid_at": 123,
"payment_method": "<string>",
"payment_method_types": [
"<string>"
],
"payment_session": "<string>",
"presentment_details": {
"amount": 123,
"currency": "<string>"
},
"processing": {
"type": "bacs_debit"
},
"receipt_url": "<string>",
"reporting_type": "<string>",
"status": "requires_payment_method",
"transfer_group": "<string>",
"account": "<string>",
"deleted": false,
"amount_refunded": 0,
"disputed": false,
"metadata": {},
"refunded": false
}Create a transaction
curl --request POST \
--url https://api.yorlet.com/v1/transactions \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"customer": "<string>",
"payment_method_types": [
"autogiro"
],
"application": "<string>",
"application_payment_type": "advance_rent",
"amount": 49999950,
"capture_method": "automatic",
"confirm": false,
"currency": "gbp",
"customer_balance": {
"apply": false,
"description": "<string>"
},
"description": "<string>",
"invoice": "<string>",
"metadata": {},
"off_session": false,
"payment_method": "<string>",
"reporting_type": "advance_rent",
"return_url": "<string>",
"send_receipt_email": true,
"statement_descriptor": "<string>",
"unit": "<string>",
"workspace": "<string>"
}
'{
"id": "<string>",
"created": 123,
"object": "transaction",
"adaptive_pricing": {
"localized_prices": [
{
"amount": 123,
"currency": "<string>",
"presentment_exchange_rate": {
"currency": "<string>",
"exchange_rate": 123
}
}
]
},
"amount": 123,
"application": "<string>",
"balance_transaction": "<string>",
"capture_method": "automatic",
"client_secret": "<string>",
"confirmed_at": 123,
"cross_border": {
"amount": 123,
"enabled": true
},
"currency": "<string>",
"customer": "<string>",
"description": "<string>",
"dispute": "<string>",
"invoice": "<string>",
"last_payment_error": {
"code": "<string>",
"failed_at": 123,
"message": "<string>"
},
"next_action": {
"type": "redirect_to_url",
"redirect_to_url": {
"url": "<string>"
}
},
"paid_at": 123,
"payment_method": "<string>",
"payment_method_types": [
"<string>"
],
"payment_session": "<string>",
"presentment_details": {
"amount": 123,
"currency": "<string>"
},
"processing": {
"type": "bacs_debit"
},
"receipt_url": "<string>",
"reporting_type": "<string>",
"status": "requires_payment_method",
"transfer_group": "<string>",
"account": "<string>",
"deleted": false,
"amount_refunded": 0,
"disputed": false,
"metadata": {},
"refunded": false
}API Key authentication. Use "Bearer YOUR_API_KEY".
The ID of the customer the transaction is for.
The payment method types allowed for this transaction.
1autogiro, bacs_debit, card, card_present, bank_transfer, direct_transfer, gbp_credit_transfer, pay_by_bank, sepa_debit The ID of the application the transaction is for.
The application payment type. Only allowed if the supplied application is open.
advance_rent, deposit, holding_fee, partial_payment, null The amount to charge. Should be a positive integer in the smallest currency unit (e.g. 100 for £1.00). The amount is required if you do not supply an application and application_payment_type.
1 <= x <= 99999900automatic, manual Three-letter ISO currency code, in lowercase. Must be a supported currency.
gbp, eur, usd, null A hash containing information about the customer balance options.
Show child attributes
An arbitrary string attached to the object. Often useful for displaying to users.
Show child attributes
The reporting type of the transaction. Only allowed if you don't supply an application ID.
advance_rent, charge, deposit, holding_fee, rent, null The URL to redirect the user to if the transaction requires additional action to complete.
The statement descriptor that will appear on customers bank statement. Only allowed if you don't supply an application payment type.
The ID of the unit. Only allowed if you don't supply an application ID.
Returns the created transaction.
Unique identifier for the object.
Time at which the object was created. Measured in seconds since the Unix epoch.
transaction Show child attributes
automatic, manual, null Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
requires_payment_method, requires_confirmation, requires_action, processing, canceled, 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.
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?