Get invoice checkout details
Get invoice checkout details by invoice id.
Endpoint
GET /integration/invoice/{id}/checkout
HTTP Request
GET /integration/invoice/{id}/checkout
Query parameters
| Name | Description | Required | Type |
|---|---|---|---|
| id | Identifier for the invoice to get | Yes | string |
Successful response, checkout details object
HTTP 200
{
"checkOutUrl": "https://www.bluetape.com/i/r?account=7aec7f522d88&id=2eb1acd98a86"
}
Response parameters
Checkout Details Object
| Name | Description | Type |
|---|---|---|
| checkOutUrl | The checkout url dedicated to invoice. | string |
Erroneous response
HTTP 404
{
"code": "404",
"reason": "Invoice not found."
}
Responses
| Code | Description |
|---|---|
| 200 | Successful operation |
| 400 | Invalid request |
| 401 | Unauthorized |
| 404 | Not found |
| 500 | Unexpected error |
Examples
curl https://api.bluetape.com/genericBthubService/integration/invoice/<invoiceId>/checkout \
-H "X-BlueTape-Key: <your-key>" \
-H "X-Integration-AccountId: <your-account-id>" \
import fetch from 'node-fetch';
const companyId = 'dc506b22c7fa';
const url = `https://api.bluetape.com/genericBthubService/integration/invoice/${invoiceId}/checkout`;
const options = {
method: 'GET',
headers: {
'X-BlueTape-Key': '<your-key>',
'X-Integration-AccountId': '<your-account-id>',
'Content-Type': 'application/json'
}
};
fetch(url, options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
using Flurl.Http;
var companyId = "dc506b22c7fa";
var url = $"https://api.bluetape.com/genericBthubService/integration/invoice/{invoiceId}/checkout";
var result = await url
.WithHeader("X-BlueTape-Key", "<your-key>")
.WithHeader("X-Integration-AccountId", "<your-account-id>")
.WithHeader("Content-Type", "application/json")
.GetJsonAsync<SignUpDetails>();
import requests
companyId = "dc506b22c7fa"
url = f'https://api.bluetape.com/genericBthubService/integration/invoice/{invoiceId}/checkout'
headers = {
"X-BlueTape-Key": "<your-key>",
"X-Integration-AccountId": "<your-account-id>",
"Content-Type": "application/json"
}
response = requests.get(url, headers=headers)
print(response.text)