Get checkout status
GET
/api/v1/payments/{id}/checkoutThe status of a payment as recorded by Motano. Use the payment.id returned by the listing operation.
Required scope payments:read
Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | min. characters 1 · max. characters 120 |
Responses
200 Checkout status and amount in grosz (PLN minor units).application/jsonSchema CheckoutStatus
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
listingId | string | null | Yes | — |
status | "pending" | "paid" | "failed" | "partially_refunded" | "refunded" | Yes | "pending" | "paid" | "failed" | "partially_refunded" | "refunded" |
checkoutState | "awaiting_confirmation" | "opening" | "awaiting_payment" | "paid" | "failed" | "partially_refunded" | "refunded" | Yes | "awaiting_confirmation" | "opening" | "awaiting_payment" | "paid" | "failed" | "partially_refunded" | "refunded" |
amountCents | integer | Yes | — |
currency | string | Yes | — |
checkoutStartedAt | string | null | Yes | format date-time |
createdAt | string | Yes | format date-time |
updatedAt | string | Yes | format date-time |
paidAt | string | null | Yes | format date-time |
JSON Schema
{
"$ref": "#/components/schemas/CheckoutStatus"
}403 Request processing error.application/jsonSchema object
| Name | Type | Required | Description |
|---|---|---|---|
code | string | Yes | — |
message | string | Yes | — |
requestId | string | Yes | — |
issues | object[] | No | — |
JSON Schema
{
"type": "object",
"required": [
"code",
"message",
"requestId"
],
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"requestId": {
"type": "string"
},
"issues": {
"type": "array",
"items": {
"type": "object"
}
}
}
}404 Request processing error.application/jsonSchema object
| Name | Type | Required | Description |
|---|---|---|---|
code | string | Yes | — |
message | string | Yes | — |
requestId | string | Yes | — |
issues | object[] | No | — |
JSON Schema
{
"type": "object",
"required": [
"code",
"message",
"requestId"
],
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"requestId": {
"type": "string"
},
"issues": {
"type": "array",
"items": {
"type": "object"
}
}
}
}429 Request processing error.application/jsonSchema object
| Name | Type | Required | Description |
|---|---|---|---|
code | string | Yes | — |
message | string | Yes | — |
requestId | string | Yes | — |
issues | object[] | No | — |
JSON Schema
{
"type": "object",
"required": [
"code",
"message",
"requestId"
],
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"requestId": {
"type": "string"
},
"issues": {
"type": "array",
"items": {
"type": "object"
}
}
}
}Other API errors Request processing error.application/jsonSchema object
| Name | Type | Required | Description |
|---|---|---|---|
code | string | Yes | — |
message | string | Yes | — |
requestId | string | Yes | — |
issues | object[] | No | — |
JSON Schema
{
"type": "object",
"required": [
"code",
"message",
"requestId"
],
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"requestId": {
"type": "string"
},
"issues": {
"type": "array",
"items": {
"type": "object"
}
}
}
}401 A valid API key is required.503 Access is closed or the service is temporarily unavailable. Check code.Related schemas
CheckoutStatus
{
"type": "object",
"required": [
"id",
"listingId",
"status",
"checkoutState",
"amountCents",
"currency",
"checkoutStartedAt",
"createdAt",
"updatedAt",
"paidAt"
],
"properties": {
"id": {
"type": "string"
},
"listingId": {
"type": [
"string",
"null"
]
},
"status": {
"type": "string",
"enum": [
"pending",
"paid",
"failed",
"partially_refunded",
"refunded"
]
},
"checkoutState": {
"type": "string",
"enum": [
"awaiting_confirmation",
"opening",
"awaiting_payment",
"paid",
"failed",
"partially_refunded",
"refunded"
]
},
"amountCents": {
"type": "integer"
},
"currency": {
"type": "string"
},
"checkoutStartedAt": {
"type": [
"string",
"null"
],
"format": "date-time"
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"updatedAt": {
"type": "string",
"format": "date-time"
},
"paidAt": {
"type": [
"string",
"null"
],
"format": "date-time"
}
}
}