Tan Code
Sell Card function
Sell function enables customer to pay for product or service at sales system (POS software or online shop etc.) by using MonPay account. When this function called, one-time TanCode (active for 1 minute) will be delivered to customer phone via Sms. In the next step the TanCode will be passed to Sell Confirm function to confirm customer transaction.
Header
| Method | POST |
| Authorization | Bearer XXXXXXXXXX |
| Content-Type | application/xml |
Request
| Parameters | Type | Required | Description | Example | |
|---|---|---|---|---|---|
| request | customer | object | Yes | Customer ID /99xxxxxx, 9999888877776666, 12FA5B1A5D6C5E9E7A/'|trans }} | <customer system="ISDN">99xxxxxx</customer> |
| attribute | Yes | ISDN – Phone number, CARDID – Card number, NFCID - NFC Card number, LOYALTYID – Account number | |||
| amount | double | Yes | |||
| pin | string | MonPay card pin code | 1234 | ||
| description | string | No | |||
| smsPrefix | string | No | |||
| smsSuffix | string | No | |||
| product | string | No | |||
| productType | string | No | |||
Response
| Parameters | Type | Description | Example |
|---|---|---|---|
| code | integer | Code determines if request was successful or not | 0 |
| info | string | Description | |
| requestId | string | Request ID | |
| transactionId | string | Transaction No |
Response type
| Parameters | Response | Description |
|---|---|---|
| code | 0 | Successful |
| 1 | Bad request | |
| 999 | Internal error | |
| info | Successful | |
| ... | Other descriptions |