GET
List payments
/v1/paymentsID операции listPayments
Ответы
200Ответ 200
A paginated list of payments
Create and retrieve payments in the Northstar sandbox.
https://sandbox-api.northstar.examplehttps://sandbox-api.northstar.exampleSandbox
Try It выполняет только локальную симуляцию в браузере, не обращается к указанным серверам и не сохраняет учётные данные.
/v1/paymentsID операции listPayments
200Ответ 200A paginated list of payments
/v1/paymentsCreates a payment and returns its current processing state.
ID операции createPayment
application/json{
"type": "object",
"required": [
"amount",
"currency"
],
"properties": {
"amount": {
"type": "integer",
"minimum": 1,
"description": "Amount in the currency's minor unit."
},
"currency": {
"type": "string",
"pattern": "^[A-Z]{3}$"
},
"reference": {
"type": "string",
"maxLength": 128
}
}
}{
"amount": 4200,
"currency": "USD",
"reference": "order_1048"
}201Ответ 201Payment created
application/json{
"type": "object",
"required": [
"id",
"amount",
"currency",
"status",
"created_at"
],
"properties": {
"id": {
"type": "string",
"example": "pay_01JQ4Z8K7VMG2"
},
"amount": {
"type": "integer",
"example": 4200
},
"currency": {
"type": "string",
"example": "USD"
},
"status": {
"type": "string",
"enum": [
"pending",
"succeeded",
"failed",
"refunded"
]
},
"created_at": {
"type": "string",
"format": "date-time"
}
}
}{
"id": "pay_01JQ4Z8K7VMG2",
"amount": 4200,
"currency": "USD",
"status": "pending",
"created_at": "2026-01-01T00:00:00Z"
}400Ответ 400Invalid request
401Ответ 401Missing or invalid credentials
/v1/payments/{paymentId}ID операции getPayment
| Имя | Расположение | Тип | Описание |
|---|---|---|---|
paymentIdобязательно | path | string | — |
200Ответ 200Payment found
application/json{
"type": "object",
"required": [
"id",
"amount",
"currency",
"status",
"created_at"
],
"properties": {
"id": {
"type": "string",
"example": "pay_01JQ4Z8K7VMG2"
},
"amount": {
"type": "integer",
"example": 4200
},
"currency": {
"type": "string",
"example": "USD"
},
"status": {
"type": "string",
"enum": [
"pending",
"succeeded",
"failed",
"refunded"
]
},
"created_at": {
"type": "string",
"format": "date-time"
}
}
}{
"id": "pay_01JQ4Z8K7VMG2",
"amount": 4200,
"currency": "USD",
"status": "pending",
"created_at": "2026-01-01T00:00:00Z"
}404Ответ 404Payment not found
/v1/payments/{paymentId}/refundsID операции refundPayment
201Ответ 201Refund created
CreatePaymentRequestobjectPaymentobject