Comment on page
Check payment status by Payment ID
With this method you can get payment status by request with payment ID.
This method can be used to get payment status without using WebhookURL
Request type: GET
Endpoint:
https://app.0xprocessing.com/Api/GetPayment/{id}
Request must contain APIKEY header with your API key. The key can be generated in the menu Merchant\Classic processing\General settings
Parameters:
Name | Description | Type |
---|---|---|
Id | Payment ID in the 0Xprocessing system | Integer |
Reply
Response Type: JSON
Parameters:
Name | Description | Type |
---|---|---|
PaymentID | Transaction ID in the 0Xprocessing system | Integer |
MerchantID | Merchant Id in 0Xprocessing system | String |
Amount | Payment amount in cryptocurrency | Double |
AmountUSD | Payment amount in USD equivalent | Double |
TotalAmount | Full amount received in the cryptocurrency without fee | Double |
TotalAmountUSD | Full amount received in USD equivalent without fee | Double |
Currency | String | |
Email | Payer's e-mail | String |
Status | Payment status Possible values are: Success - payment was processed successfully Canceled - payment has been cancelled. (The reason can be found out through 0Xprocessing support). Insufficient - payment is underpaid (the payment is considered as Insufficient if the time of the payment window has expired and the payment has not been executed completely, in this case the callback will contain AmountUSD and Amount corresponding to the real amount of received funds) | String |
BillingID | Unique payment identifier in the system from which the payment is made | String |
Signature | Checksum to verify the authenticity of the request (to ensure that the request came from 0Xprocessing) | String |
Insufficient | If "Confirm insufficient" is set in the Merchant settings, then after the end of the payment validity period (window), the insufficient payments will be automatically confirmed as successfully made. You will receive a second callback, which will transfer information about the (underpaid) amount actually received. This callback You need to process this callback on the payment generation side and change the originally generated payment in accordance with the actual funds received | Boolean |
Test | It indicates whether the payment has been marked as a test payment Test payments are not intended for real funds turnover and are not displayed in the merchant account | Boolean |
Example response JSON:
1
{
2
"PaymentId":10453,
3
"MerchantID":"Asv0232SSd",
4
"Amount":0.00264765,
5
"TotalAmount":0.00264765,
6
"Currency":"BTC",
7
"Email":"[email protected]",
8
"Status":"Success",
9
"BillingID":"13304",
10
"AmountUSD":115.0,
11
"TotalAmountUSD":115.0,
12
"Insufficient":false,
13
"Test":false,
14
"ClientId": "1000"
15
}
Last modified 2mo ago