Documentation

BankPay

  1. Home
  2. BankPay
  3. API
  4. Buy Now, Pay Later

Buy Now, Pay Later

Buy Now Pay Later object

{
    "amount": 303.99
}
Data Data type Description
amount number Permanent unique identifier of the bank account.

Buy Now Pay later field restrictions

Field Min Size Max Size
amount 1 21,474,836.47

Payment Schedule

Success

Request

POST /api/payment-schedule Authorization: Bearer {SECRET_KEY}

Example curl request

curl https://bankpay.certegy.com/api/payment-schedule \
-H 'Accept: application/json' \
-H 'Authorization: Bearer secret_UdhNaYbxs2I61F41Lem2DMyGqWcQQ67V'
{
    "amount": 303.99,
}

Response

HTTP/1.1 200 OK
{
    "data": {
        {
            "amount": "76.00",
            "date": "2021-04-09"
        },
        {
            "amount": "76.00",
            "date": "2021-04-23"
        },
        {
            "amount": "76.00",
            "date": "2021-05-07"
        },
        {
            "amount": "75.99",
            "date": "2021-05-21"
        }
    }
}

Example Errors

Amount Over $21,474,836.47

Request

POST /api/payment-schedule
Authorization: Bearer {SECRET_KEY}
{
    "amount": 21474836.48,
}

Response

HTTP/1.1 409 Conflict
{
    "error": "maximum amount",
    "message": "Over maximum amount sent, could not make payment schedule"
}

Back to Top

Was this article helpful to you? Yes 2 No 1

How can we help?