24SevenPay Checkout API (v1)
Download OpenAPI specification:Download
/checkout
Request Body schema:
| merchantReference required | string [ 1 .. 36 ] characters |
required | object (Customer) |
object (InvoiceInformation) | |
| totalAmount | integer <int64> |
| totalTaxAmount | integer <int64> |
| currency required | string non-empty |
required | Array of objects (OrderLine) non-empty |
required | object (MerchantUrls) |
Responses
Request samples
- Payload
Content type
{- "merchantReference": "string",
- "customer": {
- "firstName": "string",
- "lastName": "string",
- "street": "string",
- "postalCode": "string",
- "city": "string",
- "organizationName": "string",
- "type": "string",
- "email": "user@example.com",
- "phoneNumber": "string",
- "phoneNumberCountryCode": "string",
- "organizationNumber": "string"
}, - "invoiceInformation": {
- "invoiceDate": "2019-08-24T14:15:22Z",
- "invoiceDueDate": "2019-08-24T14:15:22Z",
- "number": "string",
- "accountNumber": "string",
- "kid": "string"
}, - "totalAmount": 0,
- "totalTaxAmount": 0,
- "currency": "string",
- "orderLines": [
- {
- "lineNumber": 0,
- "reference": "string",
- "name": "string",
- "quantity": 0,
- "unitPrice": 0,
- "taxRate": 10000,
- "totalAmount": 0,
- "totalTaxAmount": 0
}
], - "merchantUrls": {
- "accept": "string",
- "cancel": "string",
- "callback": "string"
}
}Response samples
- 200
- 400
Content type
application/json
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "products": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "type": "string"
}
]
}Response samples
- 200
Content type
application/json
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "merchantId": 0,
- "merchantReference": "string",
- "customer": {
- "firstName": "string",
- "lastName": "string",
- "street": "string",
- "postalCode": "string",
- "city": "string",
- "organizationName": "string",
- "type": "string",
- "email": "user@example.com",
- "phoneNumber": "string",
- "phoneNumberCountryCode": "string",
- "organizationNumber": "string"
}, - "invoiceInformation": {
- "invoiceDate": "2019-08-24T14:15:22Z",
- "invoiceDueDate": "2019-08-24T14:15:22Z",
- "number": "string",
- "accountNumber": "string",
- "kid": "string"
}, - "totalAmount": 0,
- "totalTaxAmount": 0,
- "currency": "string",
- "orderLines": [
- {
- "lineNumber": 0,
- "reference": "string",
- "name": "string",
- "quantity": 0,
- "unitPrice": 0,
- "taxRate": 10000,
- "totalAmount": 0,
- "totalTaxAmount": 0
}
], - "products": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "type": "string"
}
], - "payments": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "productId": "dcd53ddb-8104-4e48-8cc0-5df1088c6113",
- "amount": 0,
- "status": "string",
- "authorizedOn": "2019-08-24T14:15:22Z"
}
], - "status": "string"
}/checkout/{sessionId}/payment
path Parameters
| sessionId required | string <uuid> |
Request Body schema:
| productId required | string <uuid> non-empty |
Responses
Request samples
- Payload
Content type
{- "productId": "dcd53ddb-8104-4e48-8cc0-5df1088c6113"
}Response samples
- 200
Content type
application/json
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "productId": "dcd53ddb-8104-4e48-8cc0-5df1088c6113",
- "amount": 0,
- "status": "string",
- "authorizedOn": "2019-08-24T14:15:22Z"
}