Skip to main content
POST
/
api
/
v1
/
auth
/
orders
/
payment
Initiate payment for an order
curl --request POST \
  --url https://crypto.westminister.tech/api/v1/auth/orders/payment \
  --header 'Content-Type: application/json' \
  --data '
{
  "order_id": "eb869533-ecd5-4bca-a0fd-70a1e27b153e",
  "phone_number": "254727648169"
}
'
{
  "success": true,
  "message": "MPesa payment initiated successfully. Please check your phone and enter your PIN.",
  "order_id": "eb869533-ecd5-4bca-a0fd-70a1e27b153e",
  "payment_method": "mpesa",
  "amount": "175200",
  "merchant_request_id": "d4b7-41bb-bb8a-cc6ec5ea8bfa1784",
  "checkout_request_id": "ws_CO_12122025125158682727648169",
  "response_code": "0",
  "response_description": "Success. Request accepted for processing",
  "customer_message": "Success. Request accepted for processing"
}

Body

application/json
order_id
string<uuid>
required
phone_number
string
required

MSISDN, e.g. 2547XXXXXXXX

Response

200 - application/json

Payment initiation result

success
boolean
message
string
order_id
string<uuid>
payment_method
string
amount
string
merchant_request_id
string
checkout_request_id
string
response_code
string
response_description
string
customer_message
string