Refunds
Path parameters
RefNostringRequiredExample:
Unique, system-generated order identifier.
734881310Header parameters
X-Avangate-AuthenticationstringRequiredExample:
Authentication header
code="{VENDOR_CODE}" date="{REQUEST_DATE_TIME}" hash="{HASH}"Acceptstring · enumRequiredExample:
application/jsonPossible values: Body
amountnumberOptional
commentstringOptional
reasonstringOptional
Responses
200
OK
No content
post/orders/{RefNo}/refund/
POST /rest/6.0/orders/{RefNo}/refund/ HTTP/1.1
Host: api.2checkout.com
X-Avangate-Authentication: code="{VENDOR_CODE}" date="{REQUEST_DATE_TIME}" hash="{HASH}"
Accept: application/json
Content-Type: application/json
Content-Length: 117
{
"amount": 23,
"items": [
{
"Code": "my_product_1",
"Quantity": 1
}
],
"comment": "requested by vendor",
"reason": "CUSTOM_REASON"
}200
OK
No content
Path parameters
RefNostringRequiredExample:
Unique, system-generated order identifier.
734881310Header parameters
X-Avangate-AuthenticationstringRequiredExample:
Authentication header
code="{VENDOR_CODE}" date="{REQUEST_DATE_TIME}" hash="{HASH}"Acceptstring · enumRequiredExample:
application/jsonPossible values: Responses
200
OK
application/json
RefundIdstringOptionalExample:
5400
Invalid data
application/json
delete/orders/{RefNo}/refund/
DELETE /rest/6.0/orders/{RefNo}/refund/ HTTP/1.1
Host: api.2checkout.com
X-Avangate-Authentication: code="{VENDOR_CODE}" date="{REQUEST_DATE_TIME}" hash="{HASH}"
Accept: application/json
{
"RefundId": 5
}Last updated
Was this helpful?