thirdparty
create order
Changed onpost/trdp/order
Request
- Base URLhttps://sandbox-api.starpayethiopia.com/v1/starpay-api
- URLhttps://sandbox-api.starpayethiopia.com/v1/starpay-api/trdp/order
- Authnone declared. Required headers: x-api-secret
Headers
x-api-secretstring required
Example:X/2uxXAjJqaai5gRzXHzcFPcx9E6B3pibBbVSoce1U23q5hR2Sr5pxlh6WLQZBep
The App Secret provided by CBE.
Request body
Example request
{
"amount": 1000,
"description": "VANS",
"currency": "ETB",
"customerName": "test",
"customerPhoneNumber": "+251987654567",
"callbackURL": "https://example.com/start_pay_callback",
"customerEmail": "test12@gmail.com",
"expiredAt": "2025-07-01T23:59:59Z",
"redirectUrl": "https://google.com",
"metadata": {
"order_reference": "ORD-2025-001",
"custom_field": "any value"
},
"items": [
{
"productId": "6812220726f547936d6c1976",
"quantity": 1,
"itemName": "mobile",
"unitPrice": 500
}
]
}Response
The request was successful, and a new resource was created.
Example response
{
"status": "success",
"message": "Order created successfully",
"data": {
"metadata": {
"merchant_id": "12345",
"customer_id": "cust_67890",
"order_reference": "ORD-2025-001"
}
}
}Changes
- info
added the media type
application/jsonto the request body - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the success response with the status
- info