refund to card

Service that allows refunds to credit/debit card.

The refund is made through the orderId field, which is the unique identifier of the purchase order in the n1co system.

The amount of the refund will be the one registered in the charge.

Request
Security:
BearerAuth
Request Body schema: application/json
orderId
required
string

Unique identifier of the collection order in the n1co system

cancellationReason
required
string

Description of the cancellation for the refund

Responses
200

Successful payment

400

Bad request

401

invalid credentials

post/Refunds
Request samples
application/json
{
  • "orderId": "YznvcJ2agdPZBLLu30N7",
  • "cancellationReason": "cancellation reason"
}
Response samples
application/json
{
  • "success": true,
  • "message": "Ok",
  • "refundId": "3324897f-393a-4bf6-b3af-0b999cbc2521",
  • "orderId": 9654,
  • "amount": 15.5,
  • "currency": "USD",
  • "refundedAt": "2019-08-24T14:15:22Z",
  • "status": "SUCCEEDED"
}
Copyright © n1co 2023. All right reserved.