Body
-
The Plan ID which is linked to the Order
-
The Account ID linked to this Order. Allows to generate orders
OnBehalfof another Account. If omitted this will default to the Account associated with the User making the query. -
The currency ISO for the Order. If omitted, this will default to the preferred currency for the Account.
-
If
true, a notification, push / sms or email will be sent to the end User based on the Account preferences. -
The quantity of Plans to purchase for this Order.
-
Optional. A list of User IDs for which the Order is being generated. If omitted, the Order defaults to the User making the request.
-
Optional. Defaults to
ONE_OFFwhen omitted.ONE_OFF- The Order is a one-off purchaseTOP_UP- The Order tops up an existing Subscription —subscriptionIDmust be providedRECURRING- The Order is part of a recurring Subscription
Values are
ONE_OFF,TOP_UP, orRECURRING. -
Optional. The ID of the Subscription to top up. Required when
orderTypeisTOP_UP, ignored otherwise.
curl \
--request POST 'https://zim.api.zimconnections.com/orders/with-wallet' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "X-App-Identifier: $API_KEY" \
--header "Content-Type: application/json" \
--data '{"planID":"plan_guaGulGcrqgTYboPvetgE","accountID":"acct_ozxEbkTyvLPhhoglcALXE","currencyISO":"USD","notifyRecipient":true,"quantity":1,"usersIDs":["user_ozxEbkTyvLPhhoglcALXR"],"orderType":"ONE_OFF","subscriptionID":"sub_yf95A86RIkVxau2gzBsjV"}'
{
"planID": "plan_guaGulGcrqgTYboPvetgE",
"accountID": "acct_ozxEbkTyvLPhhoglcALXE",
"currencyISO": "USD",
"notifyRecipient": true,
"quantity": 1,
"usersIDs": [
"user_ozxEbkTyvLPhhoglcALXR"
],
"orderType": "ONE_OFF",
"subscriptionID": "sub_yf95A86RIkVxau2gzBsjV"
}
{
"id": "ordr_GMAVA4ISiqfWSG0ArGOzB",
"accountID": "acct_ozxEbkTyvLPhhoglcALXE",
"userID": "user_yf95A86RIkVxau2gzBsjV",
"createdAt": "2026-03-12T14:39:23.149Z",
"status": "PROCESSING",
"type": "ONE_OFF"
}