feature

Refund

Learn how to refund a customer's order.

1

authorise

Authorise a transaction once a spend option has been chosen.

post
/merchant/{customerRef}/authorisation
See API reference
2

settle

Settle the authorisation once the order has been received.

3

refund

Refund an authorisation once the order has been settled.

Request Example

Request

1curl --request POST \
2  --url https://mtapi.stg-newdaytechnology.net/cl/merchant-gateway-service/merchant/123456789/authorisation \
3  --header 'Ocp-Apim-Subscription-Key: REPLACE_KEY_VALUE' \
4  --header 'client-session-id: SOME_STRING_VALUE' \
5  --header 'content-type: application/json' \
6  --header 'context-merchantId: bf62723f-f664-4527-b95b-4dfee33e427d' \
7  --header 'context-tenantId: SOME_STRING_VALUE' \
8  --header 'customer-access-token: SOME_STRING_VALUE' \
9  --header 'idempotency-key: EE735673-05F2-4C56-8A68-60170BDA4524' \
10  --header 'sca-token: SOME_STRING_VALUE' \
11  --data '{"amount":{"value":50,"currencyCode":"GBP"},"orderReference":"0000123456","description":"A fridge","verificationId":"string","spendOptionId":"efb4929f-e781-4503-9035-18926cae56fd"}'