A scanned code is a barcode that a merchant scans. The code can be used to create a Payment Request API .
Attributes
code
scannedBy
provider
displayName
merchantConfigId
/api/decode
This endpoint allows you to decode a scanned code.
Attributes
code
scannedBy
merchantConfigId
Errors
UNKNOWN_CODE
MERCHANT_CONFIG_NOT_FOUND
INVALID_MERCHANT_CONFIG
Request
curl -X POST \
https://service.centrapay.com/api/decode \
-H 'content-type: application/json' \
-H 'x-api-key: <TOKEN>' \
-d '
{
"code": "123456789",
"scannedBy": "merchant",
"merchantConfigId": "P9gm1s1Cu1Q5uooxs"
}
'
Response
{
"code": "123456789",
"scannedBy": "merchant",
"merchantConfigId": "P9gm1s1Cu1Q5uooxs",
"provider": "farmlands",
"displayName": "Farmlands Card"
}