All URIs are relative to https://api.notonthehighstreet.com
Method | HTTP request | Description |
---|---|---|
refunds_create | POST /api/v1/orders/{order_id}/refunds | Refund an order |
RefundResponse refunds_create(token, order_id, refund_reason, cents)
Refund an order
Refunds all or part of an order
# load the gem
require 'noths'
api_instance = Noths::RefundsApi.new
token = "token_example" # String | Authentication credential
order_id = 56 # Integer | Order id
refund_reason = "refund_reason_example" # String | Customer will see this message
cents = 56 # Integer |
begin
#Refund an order
result = api_instance.refunds_create(token, order_id, refund_reason, cents)
p result
rescue Noths::ApiError => e
puts "Exception when calling RefundsApi->refunds_create: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
token | String | Authentication credential | |
order_id | Integer | Order id | |
refund_reason | String | Customer will see this message | |
cents | Integer |
No authorization required
- Content-Type: application/x-www-form-urlencoded
- Accept: Not defined