Skip to main content
POST
Submit Checkout Order
Places a new checkout order for customer purchases. This endpoint performs strict validation checks, including:
  1. Verifies that the customer’s name contains only letters and spaces (Zod regex validation).
  2. Validates that the customer’s phone number is a valid Nigerian format (supports prefix variants e.g. 080..., 234..., +234...).
  3. Checks product inventory levels (ensuring products or variants have sufficient stock).
  4. Records the customer details and updates inventory logs dynamically.

Authorizations

string
required
Your Publishable Key (pk_live_... or pk_test_...) generated from the Developer settings in your dashboard.

Path Parameters

string
required
The unique UUID of the shop.

Request Body

string
required
Full name of the customer. Must contain only letters and spaces, at least 2 characters.
string
required
Contact phone number. Must be a valid Nigerian number format.
string
Email address.
string
required
Physical shipping address. Minimum 5 characters.
number
required
Currency ID reference.
number
required
Total price in Kobo (e.g. 1200000 for ₦12,000.00).
array
required
List of order items. Each item must contain productId, variantId (or null), and orderProductQty (min 1).
string
required
Method used: bank_transfer, cash_on_delivery, or card.
boolean
default:"false"
Toggles whether this profile should be added to the customer database.