Documentation

BankPay

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

Buy Now, Pay Later

Buy Now, Pay Later object

{
    "amount": 303.99
}
  • amount integer

Payment, price in dollars.

Buy Now, Pay Later field restrictions

FieldMin SizeMax Size
amount1100,000.00

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 $100,000.00

Request

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

Response

HTTP/1.1 409 Conflict
{
    'error' => 'maximum amount',
    'message' => 'Over maximum amount sent, could not make payment schedule'
}

Back to Top

How can we help?