Skip to main content
POST
Return Sale

Authorizations

Authorization
string
header
required

Use your Fractal API credentials.

Username = Client ID Password = Secret Key

Sandbox credentials can be generated from the Test Portal.

Body

application/json
merchant_key
string
required

The merchant's unique API key.

Example:

"{{merchant_key}}"

transaction_id
string
required

The pos_guid of the original completed transaction to refund. Must have is_status = 2 (completed).

Example:

"txn_a7f0b5340a"

amount
string
required

Amount to refund. Must not exceed the original transaction amount or the remaining refundable balance.

Example:

"1.00"

sub_merchant_key
string

Sub-merchant key, if applicable.

Example:

""

Response

Refund processed successfully

result
boolean
Example:

true

message
string
Example:

"Transaction refunded successfully"

data
object