API Reference
Hosted Checkout
Get Checkout info [GET]

Get Checkout Info

https://sandboxapi.bitnob.co/api/v1/api/v1/checkout/info/{id} (opens in a new tab)


Path Params

ParametertypeRequired
checkoutId
ID of hosted checkout
string

Request

Hosted checkout/Get Checkout Info [GET]
curl --request GET \
     --url https://sandboxapi.bitnob.co/api/v1/api/v1/checkout/info/id \
     --header 'Authorization: Bearer API-KEY' \
     --header 'accept: application/json'

Response

🟢 200 OK
{
  "status": true,
  "message": "fetch checkout status successful",
  "data": {
    "id": "0fe33b67-7b1b-4e52-8304-6f56c8e6f546",
    "createdAt": "2022-01-25T11:02:10.513Z",
    "updatedAt": "2022-01-25T11:02:10.513Z",
    "reference": "checkoutref",
    "satAmount": "1000",
    "satAmountPaid": "0",
    "description": "string",
    "currency": "btc",
    "status": "unpaid",
    "expiresAt": "2022-01-26T11:02:10.509Z",
    "lightningExpiresAt": "2022-01-25T14:02:10.000Z",
    "callbackUrl": "https://string.com",
    "successUrl": "https://string.com",
    "lightning": "lntb10u1ps7lk9jpp5f4p67xp9dqg4kyqu8qnu9d2sfwryrf6hzpzwk0mvs3qvqt0q9a3qdq2wd68y6twvucqzpgxqr23sfppqafk0sw0xdd755cwkx493gaukkckkn3sgsp5w3wmz3dvyhfu6n4vead68cc3p9497udtgrm99lm7pkyylr653u3q9qyyssqhv57jmt08ygzmwqlhpug9ygtxqp88hp69hwm9a9gg8d74j562jzkrufxyr2z3y2j5jh4fltrnjw2cyc3tyvrl9sxw7q52p255jkuy6gqfjmf06",
    "address": null,
    "customer": {
      "id": "a2e1683e-bf3c-4992-85e8-719d9132a588",
      "createdAt": "2022-01-25T11:02:09.580Z",
      "updatedAt": "2022-01-25T11:02:09.580Z",
      "firstName": null,
      "lastName": null,
      "email": "string@gmail.com",
      "phone": null,
      "countryCode": null,
      "blacklist": false
    },
    "name": "Default",
    "logo": null,
    "btcAmount": "0.00001000",
    "amount": "0.36"
  }
}
Last updated on