v1

latestOpenAPI 3.1.02026-07-24170121.2 MB
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.

post/v3/transactions/sale

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

tenantIdstring required

The last 12 digits of the merchant identifier (MID).

terminalIdstring required

10-digit terminal serial number.

transactionIdstring required

Client-generated transaction identifier used for reconciliation.

tenderType'CREDIT' | 'DEBIT' required

Tender type used on the transaction.

tipRequestFlagboolean nullable

Whether a tip is requested

printReceipt0 | 1 | 2 | 3 required

Allowed values: <br> 0 – No receipt<br> 1 – Print merchant receipt<br> 2 – Print customer receipt<br> 3 – Print both merchant and customer receipts

callbackURLstring required

HTTPS endpoint that receives the asynchronous callback payload.

metadataobject

Optional key-value metadata used for correlation and diagnostics.

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"
}

Response

Transaction Initiated

traceIdstring uuid

Correlation identifier matching the initial API response traceId

Example response

{
  "response": {
    "status": "SUCCESS"
  }
}