API referenceBills
Get a bill payment and its token
GET
api-keyheader
x-api-key<token>Your API key: ck_test_... for test mode, ck_live_... for live. Send it with x-api-secret (or Authorization: Bearer ).
id*stringx-api-secret?stringRecommended: API secret sent over HTTPS. You may send it as Authorization: Bearer instead. If supplied, x-timestamp and x-signature are not required.
x-timestamp?stringLegacy signed mode: Unix time in milliseconds; maximum clock skew five minutes.
x-signature?stringLegacy signed mode: HMAC-SHA256(secret, timestamp.METHOD.url.idempotencyKey.bodyHash).
application/json- response
id*stringtransactionId*stringreference*stringstatus*stringValue in
"PENDING""PROCESSING""SUCCESS""FAILED"amountMinor*stringcurrency*stringenvironment*stringValue in
"SANDBOX""LIVE"provider*stringValue in
"VTPASS""FLUTTERWAVE"category*stringserviceCode*stringproductCode?customerIdMasked*stringproviderReference?token?Electricity/recharge token when supplied by the provider. Returned on the first successful response and authenticated detail reads.
requiresReconciliation*booleancreatedAt*stringFormat
date-timeupdatedAt*stringFormat
date-timecurl -X GET 'https://api.creddot.com/api/v1/bills/string'Example Response
{ "id": "string", "transactionId": "string", "reference": "string", "status": "PENDING", "amountMinor": "string", "currency": "string", "environment": "SANDBOX", "provider": "VTPASS", "category": "string", "serviceCode": "string", "productCode": {}, "customerIdMasked": "string", "providerReference": {}, "token": {}, "requiresReconciliation": true, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z"}