Refund request
Refund request
- application/json
Request Body
- merchant_key uuid required
Key for Merchant identification
- payment_id uuid required
Possible values:
<= 255 characters
Payment ID (public)
- hash string required
Special signature to validate your request to Payment Platform Addition in Signature section Must be SHA1 of MD5 encoded string
- amount float
Amount to refund. It is required for particular refund. If amount is not specified the full order amount is settled by default.
Responses
- 200
OK
- application/json
- Schema
- Example (from schema)
- Example
Schema
- payment_id uuid
Possible values:
<= 255 characters
Payment ID (public)
- result string
{
"payment_id": "dc66cdd8-d702-11ea-9a2f-0242c0a87002",
"result": "string"
}
{
"payment_id": "63c781cc-de3d-11eb-a1f1-0242ac130006",
"result": "accepted"
}
POST /api/v1/payment/refund
Request
Request
curl -L -X POST 'https://checkout.dineropay.com/api/v1/payment/refund' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"merchant_key": "xxxxx-xxxxx-xxxxx",
"payment_id": "63c781cc-de3d-11eb-a1f1-0242ac130006",
"amount": "0.19",
"hash": "{{operation_hash}}"
}'
curl -L -X POST 'https://checkout.dineropay.com/api/v1/payment/refund' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"merchant_key": "xxxxx-xxxxx-xxxxx",
"payment_id": "63c781cc-de3d-11eb-a1f1-0242ac130006",
"amount": "0.19",
"hash": "{{operation_hash}}"
}'
curl -L -X POST 'https://checkout.dineropay.com/api/v1/payment/refund' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"merchant_key": "xxxxx-xxxxx-xxxxx",
"payment_id": "63c781cc-de3d-11eb-a1f1-0242ac130006",
"amount": "0.19",
"hash": "{{operation_hash}}"
}'
curl -L -X POST 'https://checkout.dineropay.com/api/v1/payment/refund' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"merchant_key": "xxxxx-xxxxx-xxxxx",
"payment_id": "63c781cc-de3d-11eb-a1f1-0242ac130006",
"amount": "0.19",
"hash": "{{operation_hash}}"
}'
curl -L -X POST 'https://checkout.dineropay.com/api/v1/payment/refund' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"merchant_key": "xxxxx-xxxxx-xxxxx",
"payment_id": "63c781cc-de3d-11eb-a1f1-0242ac130006",
"amount": "0.19",
"hash": "{{operation_hash}}"
}'
curl -L -X POST 'https://checkout.dineropay.com/api/v1/payment/refund' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"merchant_key": "xxxxx-xxxxx-xxxxx",
"payment_id": "63c781cc-de3d-11eb-a1f1-0242ac130006",
"amount": "0.19",
"hash": "{{operation_hash}}"
}'
curl -L -X POST 'https://checkout.dineropay.com/api/v1/payment/refund' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"merchant_key": "xxxxx-xxxxx-xxxxx",
"payment_id": "63c781cc-de3d-11eb-a1f1-0242ac130006",
"amount": "0.19",
"hash": "{{operation_hash}}"
}'