logoAccess

Refund an underpaid crypto payment

POST
/api/v1/crypto_payments/{id}/refund

Send what the customer paid back to their wallet. The refund is reviewed before it's sent; the network fee comes out of it.

Authorization

apiKeyHeader
headerx-api-key<token>

API key for authentication. Generate from the dashboard or via POST /v1/api-keys.

Path Parameters

id*string

Header Parameters

x-api-key*string

API key for authentication

Length1 <= length

Request Body

  1. body
address*string

The customer's wallet address

Length1 <= length
memo?string

Memo or tag, for coins that need one

Response Body

Response for status 201

application/json
  1. response
id*string
object*string
type*string

payout or refund

status*string

pending_approval, processing, paid, failed or rejected

coin*string
address*string
memo*string|null
amount*string

Taken from the balance

fee*string

Access's fee, part of amount

network_fee*|

Network fee estimate, part of amount

transaction_hash*string|null
rejected_reason*string|null
payment*|

The refunded payment

description*string|null
paid_at*string|null
created_at*string|null
updated_at*string|null
curl -X POST 'https://api.tryaccess.xyz/api/v1/crypto_payments/string/refund' \  -H 'x-api-key: string' \  -H 'Content-Type: application/json' \  -d '{  "address": "string"}'
{  "id": "cpo_01JB2X7Q9R8S6T5U4V3W2X1Y0Z",  "object": "crypto_payout",  "type": "payout",  "status": "pending_approval",  "coin": "usdt_tron",  "address": "string",  "memo": "string",  "amount": "120.5",  "fee": "string",  "network_fee": "string",  "transaction_hash": "string",  "rejected_reason": "string",  "payment": "string",  "description": "string",  "paid_at": "string",  "created_at": "string",  "updated_at": "string"}

How is this guide?