public_retrieve
GET /payments/:reference/public/
Retrieve payment intent public endpoint
Path Parameters
- reference string required
Responses
- 200
- application/json
- Schema
- Example (from schema)
Schema
- id string required
- status object
- token string required
- currency object
- created_at date-time required
- updated_at date-time required
- expires_at date-time required
- pay_address string required
- amount_fiat decimal required
Possible values: Value must match regular expression
^\d{0,17}(?:\.\d{0,2})?$
- amount_crypto string required
- amount_captured_fiat string required
- amount_captured_crypto string required
{
"id": "string",
"status": "pending",
"token": "string",
"currency": "EUR",
"created_at": "2023-04-18T10:10:12.823Z",
"updated_at": "2023-04-18T10:10:12.823Z",
"expires_at": "2023-04-18T10:10:12.823Z",
"pay_address": "string",
"amount_fiat": "string",
"amount_crypto": "string",
"amount_captured_fiat": "string",
"amount_captured_crypto": "string"
}
Authorization
name: jwtAuthtype: httpscheme: bearerbearerFormat: JWT
Request
Request
curl / cURL
curl -L -X GET 'https://docs.kubepay.io/payments/:reference/public/' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
python / requests
curl -L -X GET 'https://docs.kubepay.io/payments/:reference/public/' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
go / native
curl -L -X GET 'https://docs.kubepay.io/payments/:reference/public/' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
nodejs / axios
curl -L -X GET 'https://docs.kubepay.io/payments/:reference/public/' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
ruby / Net::HTTP
curl -L -X GET 'https://docs.kubepay.io/payments/:reference/public/' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
csharp / RestSharp
curl -L -X GET 'https://docs.kubepay.io/payments/:reference/public/' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
php / cURL
curl -L -X GET 'https://docs.kubepay.io/payments/:reference/public/' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
java / OkHttp
curl -L -X GET 'https://docs.kubepay.io/payments/:reference/public/' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
powershell / RestMethod
curl -L -X GET 'https://docs.kubepay.io/payments/:reference/public/' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'