Surcharge calculation transaction

Get a surcharge calculation transaction by ID (txn_***).

HINT: This can be used to retrieve the surcharge amount for a previous calculation.

GET/api/v1/surcharge/{transactionId}

Get a surcharge calculation transaction by ID (txn_***).

HINT: This can be used to retrieve the surcharge amount for a previous calculation.

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
RequestGET/api/v1/surcharge/{transactionId}
curl 'https://api.theyeeld.com/api/v1/surcharge/{transactionId}' \
  --request GET
Response
{
"transactionId": "txn_####",
"status": "string",
"surcharge": 300
}