feature

Reverse

Learn how to cancel a customer's order.

1

authorise

Retrieve and display the spend options available based on the customer or product.

get
/merchant/{customerRef}/spend-options
See API reference
2

reverse

Reverse an order once the order can be authorised.

Request Example

Request

1curl --request GET \
2  --url 'https://mtapi.stg-newdaytechnology.net/cl/merchant-gateway-service//merchant/123456789/spend-options?basketAmount=100&promoOnly=true&zeroPercentOnly=true&spendType=Instalment&orderBy=InstalmentPaymentAmount' \
3  --header 'context-merchantId: bf62723f-f664-4527-b95b-4dfee33e427d' \
4  --header 'context-tenantId: SOME_STRING_VALUE'

Response Example

Response

JSON

1{
2  "options": [
3    {
4      "name": "Promotional Offer A",
5      "description": "The description of the spend option",
6      "offerId": "cb097cd5-1ad7-4b90-a656-bdc3a5757fd4",
7      "offerCode": "offer-code",
8      "offerStatus": "Active",
9      "offerSource": "Promotional",
10      "spendType": "Purchase",
11      "interestRate": 0.02,
12      "spendOptionId": "cb097cd5-1ad7-4b90-a656-bdc3a5757fd4",
13      "duration": 12,
14      "illustration": {
15        "monthlyPayment": {
16          "value": 50,
17          "currencyCode": "GBP"
18        },
19        "interestToPay": {
20          "value": 50,
21          "currencyCode": "GBP"
22        },
23        "totalRepayable": {
24          "value": 50,
25          "currencyCode": "GBP"
26        }
27      },
28      "endDate": "2024-01-01T00:00:00+00:00",
29      "settlementPercentage": 0.02,
30      "refundPercentage": 0.02,
31      "chargebackPercentage": 0.02
32    }
33  ]
34}