Record cancelation

Record a cancelation associated with a surcharge calculation transaction.

This should be called when a patron abandons a transaction before submitting payment.

POST/api/v1/surcharge/{transactionId}/cancel

Record a cancelation associated with a surcharge calculation transaction.

This should be called when a patron abandons a transaction before submitting payment.

Path Parameters

transactionIdpathrequired

The transaction ID returned from the initial surcharge calculation (txn_***)

Yeeld-Accountheader

Either the account.id or external identifier for a merchant account.

This can be used by a platform account to perform actions on behalf of a merchant account.

NOTE: This will be ignored if the request is not made by a registered platform account.

Responses

200Default Response
RequestPOST/api/v1/surcharge/{transactionId}/cancel
curl 'https://api.theyeeld.com/api/v1/surcharge/{transactionId}/cancel' \
  --request POST
Response
{
"transactionId": "txn_####",
"status": "string",
"surcharge": 300
}