Customer-safe view of a payment (poll this every 2–3 s while processing)
GET
/v1/public/payments/{id}
const url = 'http://localhost:4000/v1/public/payments/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/payments/example?cs=example'Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”id
required
string
Query Parameters
Section titled “Query Parameters”cs
required
Payment client secret
string
Payment client secret
Responses
Section titled “ Responses ”Payment
Media typeapplication/json
object
id
required
string
livemode
required
boolean
amount
required
integer
currency
required
string
status
required
string
description
required
string | null
merchant
required
object
name
required
string
provider
required
string | null
available_providers
required
Array<string>
next_action
required
expires_at
required
string
return_url
required
Where to send the customer once status is terminal
string | null
Example
{ "status": "requires_payment_method", "provider": "wave", "available_providers": [ "wave" ], "next_action": { "type": "redirect" }}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" }}Invalid state
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" }}