Transactions
Sale
This API endpoint enables you to charge a credit card via a terminal by sending a sale command to a terminal. The final approval/decline result is delivered asynchronously to the callbackURL. Terminal connectivity gate: the request returns immediately; before dispatching, the endpoint verifies the terminal is connected to Payarc Connect and, if it is not, responds immediately with 409 TERMINAL_OFFLINE without sending any command to the terminal.
post/v3/transactions/sale
Request
- Base URLhttps://testpayarcconnectapi.payarc.net
- URLhttps://testpayarcconnectapi.payarc.net/v3/transactions/sale
- AuthHTTP bearer
Headers
Authorizationstring required
Bearer token used to authenticate API requests.
X-Idempotency-Keystring uuid required
Unique key used to prevent duplicate transaction commands.
Request body
Example request
{
"tenantId": "145504363463",
"terminalId": "1850401309",
"transactionId": "3fa85f645717",
"amount": {
"total": 549,
"subtotal": 450,
"currency": "USD",
"tip": 72,
"tax": 27
},
"callbackURL": "https://example.com/payarc/callback",
"splits": [
{
"mid": "0709900000098856",
"amount": 100,
"percent": 55
}
]
}Response
Transaction Initiated
Example response
{
"response": {
"status": "SUCCESS"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.