logoAccess

Retrieve a crypto payment

GET
/api/v1/crypto_payments/{id}

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

Response Body

Response for status 200

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

waiting, confirming, finished, failed, expired or refunded

failure_reason*string|null
amount*number

In the smallest unit of currency (e.g. cents in ETB or USD)

currency*string

Three-letter ISO currency code: ETB or USD

pay_with*string
pay_amount*string

Exactly what the customer must send, as a decimal string

pay_address*string
pay_memo*|

Memo or tag the customer must include, for coins that need one

amount_received*string|null
fee*|

Access's fee, in the coin

customer*string
description*string|null
metadata*unknown
expires_at*string|null
paid_at*string|null
created_at*string|null
updated_at*string|null
curl -X GET 'https://api.tryaccess.xyz/api/v1/crypto_payments/string' \  -H 'x-api-key: string'
{  "id": "cp_01JB2X7Q9R8S6T5U4V3W2X1Y0Z",  "object": "crypto_payment",  "status": "waiting",  "failure_reason": "underpaid",  "amount": 250000,  "currency": "ETB",  "pay_with": "usdt_tron",  "pay_amount": "13.162245",  "pay_address": "string",  "pay_memo": "string",  "amount_received": "string",  "fee": "string",  "customer": "string",  "description": "string",  "metadata": null,  "expires_at": "string",  "paid_at": "string",  "created_at": "string",  "updated_at": "string"}

How is this guide?