Poll a crypto payment's status
curl --request GET \
--url https://my.server.express/api/v1/client/invoices/{id}/pay \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://my.server.express/api/v1/client/invoices/{id}/pay', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://my.server.express/api/v1/client/invoices/{id}/pay"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"success": true,
"data": {
"paymentStatus": "<string>",
"isFinal": true,
"txid": "<string>"
}
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}Invoices
Poll a crypto payment's status
Asks the gateway that minted the payment for its status, to drive the pay dialog’s spinner. The webhook is what actually settles the invoice. The payment must belong to this invoice. Unexpected failures return 500 with the underlying error message. Uncertain — unlike the other invoice routes, this lookup doesn’t exclude drafts.
GET
/
v1
/
client
/
invoices
/
{id}
/
pay
Poll a crypto payment's status
curl --request GET \
--url https://my.server.express/api/v1/client/invoices/{id}/pay \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://my.server.express/api/v1/client/invoices/{id}/pay', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://my.server.express/api/v1/client/invoices/{id}/pay"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"success": true,
"data": {
"paymentStatus": "<string>",
"isFinal": true,
"txid": "<string>"
}
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}Authorizations
bearerAuthapiToken
Session access token (JWT) from POST /v1/auth/login or /v1/auth/refresh. A session satisfies every API scope.
Path Parameters
Query Parameters
Gateway payment id returned by POST /pay. uuid is accepted as a legacy alias.