POST api/ShopifyOrderRefund
Saves a given Shopify order refund and creates a corresponding sale in Gamma.
Request Information
URI Parameters
None.
Body Parameters
ApiGammaShopifyOrder| Name | Description | Type | Additional information |
|---|---|---|---|
| SubscriberApiSale | ApiSubscriberSale |
None. |
|
| ShopifyOrderId | unsigned integer |
None. |
|
| RefundOriginalOrderID | unsigned integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"SubscriberApiSale": {
"SubscriberId": 1,
"PaymentMethod": "sample string 2",
"SaleDate": "2025-10-28T19:11:15.6952921+00:00",
"SaleBranchId": 4,
"VisitBranchId": 5,
"TillNo": "sample string 6",
"Customer": {
"ID": 1,
"Email": "sample string 2",
"UDF": "sample string 3",
"Title": "sample string 4",
"Firstname": "sample string 5",
"Middlename": "sample string 6",
"Lastname": "sample string 7",
"DOB": "2025-10-28T19:11:15.6952921+00:00",
"CompanyName": "sample string 9",
"HouseNo": "sample string 10",
"AddressLine1": "sample string 11",
"AddressLine2": "sample string 12",
"AddressLine3": "sample string 13",
"City": "sample string 14",
"Postcode": "sample string 15",
"County": "sample string 16",
"Country": "sample string 17",
"TelephoneNumber": "sample string 18",
"EveningTelephoneNumber": "sample string 19",
"MailingList": "sample string 20",
"Notes": "sample string 21",
"Password": "sample string 22",
"Interests": null,
"PersonImage": "sample string 23",
"DDAcountHolder": "sample string 24",
"DDAccountNumber": "sample string 25",
"DDSortCode": "sample string 26",
"DDBankName": "sample string 27",
"DDBankAddress": "sample string 28",
"DDBankPostCode": "sample string 29",
"MemberNumber": "sample string 30",
"AccountRef": "sample string 31",
"ConsentMail": true,
"ConsentPhone": true,
"ConsentSMS": true,
"ConsentEmail": true,
"Username": "sample string 36",
"ForcePasswordChange": true,
"CustomerRef": "sample string 38",
"CustomerUDFs": null,
"pcodeFormatter": null
},
"SubscriberSaleLineList": null
},
"ShopifyOrderId": 1,
"RefundOriginalOrderID": 1
}
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |