Skip to content
Scanned Codes

Decode Scanned Code

POST/api/decode

This endpoint allows you to decode a scanned code.

Request body

  • coderequired string
    The utf8 representation of data decoded from what was scanned.
  • merchantConfigIdrequired string
    The ID of the Merchant Config.
  • scannedByrequired enum
    The party that scanned the code.
    • merchant
      The merchant scanned the code, eg from the customer's phone or card.

Responses

Request
curl -X POST https://service.centrapay.com/api/decode \
-H 'content-type: application/json' \
-H 'x-api-key: <TOKEN>' \
-d '{
"code": "123456789",
"merchantConfigId": "mc_5ee168e8597be5002af7b454",
"scannedBy": "merchant"
}'