A cardholder makes a $45 purchase at a grocery store and requests $20 cash back. Before simulating this transaction type, verify that your product settings do not prohibit cashback transactions (such as the CASHB parameter). In the request, the `amount
` should contain the purchase amount plus the cashback amount. For `cashBack
` pass the amount to return in cash. This amount is visible in the `cashback_amount
` field of the Auth API.
### Authorization
Call <a href="ref:post_createsimulatedcardauth" target="_blank">Create Simulated Card Authorization</a> with these parameters.
Parameter | Value |
`accountNo ` | <<glossary:PAN>>, <<glossary:PRN>> or <<glossary:CAD>> |
`amount ` | `65 ` |
`association ` | `visa ` or `mc_auth ` |
`merchantName ` | `Central Supermarket ` |
`mcc ` | `5411 ` |
`cashBack ` | `20 ` |
`specialFunctions ` | `add_cashback ` (Visa)<br>`make_cashback ` (Mastercard) |
`transType ` | `1 ` or leave blank |
#### View the authorization
Call <a href="ref:post_getauthhistory" target="_blank">Get Authorization History</a> to see the authorization. The `amount
` and `local_amt
` fields show the same amount.
### Settlement
Call <a href="ref:post_createsimulatedcardsettle" target="_blank">Create Simulated Card Settlement</a> with these parameters:
Parameter | Value |
`authId ` | `auth_id ` from the previous authorization |
`accountNo ` | PAN, PRN or CAD |
`amount ` | `65 ` or leave blank |
`association ` | `visa ` or `mc_auth ` |
### Transactions created
Call <a href="ref:post_getalltranshistory" target="_blank">Get All Transaction History</a> to see the three ledger entries: