> For the complete documentation index, see [llms.txt](https://docs.bitnbox.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.bitnbox.com/bitnbox-pay-api-reference/get-payment-status.md).

# Get payment status

{% hint style="warning" %}
To test the API, make sure to include `x-api-key` in the header with your API key.
{% endhint %}

## Get payment status by id

> Returns the current payment status. The payment \`id\` must be passed as a path parameter in the request URL. The request body must be empty.

```json
{"openapi":"3.0.2","info":{"title":"Bitnbox API","version":"0.1.0"},"servers":[{"url":"https://api.bitnbox.com"}],"security":[{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key"}}},"paths":{"/v1/payment/{id}/status":{"get":{"description":"Returns the current payment status. The payment `id` must be passed as a path parameter in the request URL. The request body must be empty.","summary":"Get payment status by id","tags":["v1"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"Unique identifier of the payment"}],"operationId":"apiPaymentStatus","responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"orderId":{"type":"string","description":"Optional identifier for the order linked to the payment."},"status":{"type":"string","enum":["waiting","confirming","failed","locked","expired","paid","paid_over","paid_partial","settling","on_hold"],"description":"Current status of the payment."},"method":{"default":"crypto","type":"string","enum":["crypto","direct","binancepay"],"description":"Payment method, default `crypto`"},"currency":{"type":"string","minLength":1,"description":"Cryptocurrency associated with the payment (e.g., usdt, usdc)."},"network":{"type":"string","description":"Blockchain network associated with the payment."},"payAmount":{"type":"number","description":"Amount to be paid."},"paymentId":{"type":"string","format":"uuid","description":"Unique payment identifier."},"checkoutUrl":{"type":"string","description":"Link to the Binance-hosted checkout page."},"appRedirectUrl":{"type":"string","description":"CEX redirect url"},"payAddress":{"type":"string","description":"The address to send the payment to."},"payQrCodeUri":{"type":"string","description":"URI for generating the payment QR code."},"customerId":{"type":"string","minLength":1,"description":"Customer's ID for security purposes."},"customerIp":{"type":"string","minLength":1,"description":"The customer's IP address, recorded for compliance purposes."},"processingFeeByUser":{"type":"boolean","description":"Indicates whether the platform fee should be covered by the user or the merchant."},"products":{"type":"array","items":{"nullable":true}},"additionalData":{"type":"string","description":"Extra information related to the payment."},"webhookUrl":{"type":"string","format":"uri","description":"URL where transaction updates and payment notifications will be sent."},"createdAt":{"type":"string","format":"date-time","description":"Date and time when the payment was created."},"updatedAt":{"type":"string","format":"date-time","description":"Date and time of the last update to the payment information."},"expiredAt":{"type":"string","format":"date-time","description":"Date and time when the payment expires. Currently set to 15 minutes from the creation time."},"condition":{"type":"string","description":"Reason why payment is in ON_HOLD status"},"paidAmount":{"type":"number","description":"Amount sent by the payer."},"merchantAmount":{"type":"number","description":"Amount credited to the merchant account after deducting the platform fee."},"paidAddress":{"type":"string","description":"Sender’s address or Binance Pay ID."}},"required":["orderId","status","currency","network","payAmount","paymentId","checkoutUrl","payQrCodeUri","customerId","customerIp","processingFeeByUser","products","webhookUrl","createdAt","updatedAt","expiredAt","paidAmount","merchantAmount","paidAddress"],"description":"Successful response with payment status details"}}}}}}}}}
```

{% hint style="info" %}
**appRedirectUrl** - а link for the user to proceed to payment on the exchange side.

For web integration, it is recommended to open appRedirectUrl in a new browser tab (target=“\_blank”) to ensure a correct user experience and avoid redirect blocking.
{% endhint %}
