POST
/api/v1/payments/scan-receive
Charge a customer's code
Merchant side of a charge code: scan the code the customer shows and take `amount` from their wallet. Fails with `expired`, `already_used` or `amount_exceeds_authorization` when the code does not allow it. Only a signed charge code is accepted; a user id or a request code never is.
Parameters
code
string · required
The scanned charge token.
amount
integer · required
Amount to take, in minor units.
currency
string
Defaults to USD.
curl https://malaleem.com/api/v1/payments/scan-receive \
-H "Authorization: Bearer {token}" \
-d code={charge_token} -d amount=2500