post https://developer-api.uat1.pcaasa.com/api/?messages=authorization-transaction
Request to make a purchase with a pre-authorization.
Authorization Request
Use the following to build the request.
- ) Make a JSON object {} .
- ) Add and set the messageType to "0200"
- ) Add and set the responseCode to "00"
- ). Add and set the transactionType to "00"
- ) Add and set the referenceNumber with a valid account.
- ) Add and set the expirationMonth as MM.
- ) Add and set the expirationYear as YY.
- ) Add and set amountTransaction to the amount, in US cents, of how much the transaction will be for. example, if the purchase is $2.50, then type in 250.
- ) Add and set the unique token for access.
Transaction request
If the response code is not 00 or 10 then the transaction request is not required, instead you should reverse the authorization described in the "Authorization Reversal" page. If a 00 or 10 responseCode is received from the authorization response, then the transaction to exchange the money can be made.
1.) Change the messageType to 0220.
2.) Add the parameter authorizationIdentificationResponse to the reversal JSON request and set to the authorizationIdentificationResponse from the authorization response (0100) .
3.) The response code should be mirrored from the responseCode (00 or 10).