Retrieve a crypto payment
GET
apiKeyHeaderheader
x-api-key<token>API key for authentication. Generate from the dashboard or via POST /v1/api-keys.
id*stringx-api-key*stringAPI key for authentication
Length
1 <= lengthResponse for status 200
application/json- response
id*stringobject*stringstatus*stringwaiting, confirming, finished, failed, expired or refunded
failure_reason*string|nullamount*numberIn the smallest unit of currency (e.g. cents in ETB or USD)
currency*stringThree-letter ISO currency code: ETB or USD
pay_with*stringpay_amount*stringExactly what the customer must send, as a decimal string
pay_address*stringpay_memo*|Memo or tag the customer must include, for coins that need one
amount_received*string|nullfee*|Access's fee, in the coin
customer*stringdescription*string|nullmetadata*unknownexpires_at*string|nullpaid_at*string|nullcreated_at*string|nullupdated_at*string|nullcurl -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?