Checkout
This API facilitates the integration of Rebill's secure and customizable payment gateway, allowing customers to complete purchases with various payment methods. Utilize this API to streamline the checkout experience, configure payment options, and handle post-payment workflows.
Checkout
You may use this endpoint to create instant charges to the customer without requiring the card and customer information. In case of first checkout over card, you may only use this endpoint if you are PCI DSS certified. For this specific use case you may contact us at support@rebill.com. Otherwise, you may use our sdk to securely execute a payment.
Headers
string
required
Required Body Parameters
array
required
i
object
required
object
required
Optional Body Parameters
object
object
object
string
Loading...
Response
{
"id": "xxxxx-172f-4f86-xxxxx-555945cf21e3",
"cartId": "xx-xx-404f-xxx-6519e24eb76a",
"organizationId": "d60fbbec-be2c-410f-8246-7d0475448c7c",
"paidBags": [
{
"payment": {
"id": "xxxxxxxxxx-xx-4114-xx-ce5839136944",
"currency": "ARS",
"status": "SUCCEEDED",
"amount": "500",
"gateway": {
"id": "xxxxxxxx-172f-xx-b5e9-xx",
"type": "rebill_gateway",
"description": "string",
"country": "AR",
"status": [
"PENDING",
"ACCEPTED"
],
"publicKey": "xxxxxxxxxxxxxxxxxxx",
"recurring": false,
"crossborder": true,
"currencies": true
},
"createdAt": "2024-02-24T22:33:50.240Z",
"source": "string"
},
"prices": [
{
"id": "xxxx-172f-4f86-xx-555945cf21e3",
"quantity": 2
}
],
"schedules": [
"xxxxxxxxx-d70b-xx-904c-xx"
],
"source": "string"
}
],
"buyer": {
"customer": {
"id": "xxxx-39f6-4c0a-xxxxxx-1ae42bf4d7dd",
"firstName": "John",
"lastName": "Test",
"cellPhone": "54111122530654",
"birthday": "13-01-1989",
"taxIdType": "CUIT",
"taxIdNumber": "20940000019",
"personalIdType": "DNI",
"personalIdNumber": "94000001",
"userEmail": "john.test@example.com",
"address": {
"country": "AR",
"street": "Calle",
"number": "1654",
"zipCode": "1419",
"city": "CABA",
"state": "Ciudad Autónoma de Buenos Aires",
"floor": "6",
"apt": "B"
}
},
"card": {
"id": "1ef9c26b-172f-4f86-b5e9-555945cf21e3",
"bin": 45179,
"last4": "0033",
"cardNumber": "43201234678909871234",
"cardHolder": "John Test",
"brand": "Visa",
"expiration": {
"month": 11,
"year": "2022"
},
"gatewayCards": {
"month": 11,
"year": "2022"
}
}
},
"type": "invoice",
"createdAt": "2024-02-24T22:33:50.241Z"
}
Checkout using cash
Create cash payments for your customers (only for one-time transactions).
Headers
string
required
Required Body Parameters
object
required
object
required
string
required
Optional Body Parameters
object
object
Loading...
Response
{
"paymentId": "c6a018c0-3376-4acd-88a5-160dcbfae14b",
"paymentCode": "1289992",
"paymentExpirationDate": "11/04/2024"
}
Checkout using bank transfer
Create bank transfer payments for your customers (only for one-time transactions).
Headers
string
required
Required Body Parameters
object
required
object
required
string
required
Optional Body Parameters
object
object
Loading...
Response
{
"paymentId": "xxxxxxxxx-9e79-xxxx-xxxx-928320ed4123",
"base64Qr": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAtoAAALaCAIAAACAjxxxxxOx...",
"codeQr": "63049545"
}
Access installments data
You can offer your customers the possibility of paying by installments if the payment gateway reports an installment plan. Execute a POST request with this endpoint in order to access installments information when the customer provides a card.
Headers
string
required
Required Body Parameters
string
required
object
required
number
required
Optional Body Parameters
string
Loading...
Response
[
{
"quantity": 1,
"individualPrice": 100000,
"totalPrice": 100000,
"cft": null,
"tea": null
},
{
"quantity": 3,
"individualPrice": 33333.33,
"totalPrice": 100000,
"cft": null,
"tea": null
},
]