Open a stable invoice link
GET
/v1/public/invoices/{id}
const url = 'http://localhost:4000/v1/public/invoices/example?cs=example';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'http://localhost:4000/v1/public/invoices/example?cs=example'Redirects to the current payment attempt. A confirmed failed attempt may be replaced while the invoice remains payable.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”id
required
string
Query Parameters
Section titled “Query Parameters”cs
required
Invoice link secret
string
Invoice link secret
Responses
Section titled “ Responses ”Redirect to the current hosted checkout payment
Validation error
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": "example" }}Not found
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": "example" }}Invoice is no longer payable
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": "example" }}Rate limited; see Retry-After response header
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": "example" }}