Rassmi Developers

Orders

Import COD Order

Bring a cash-on-delivery order into the store: it joins the agents' call queue as pending_confirmation. Refused with 403 while the store does not take new orders (see GET /store).

POST https://rassmi.com/api/v1/orders

Authorization

  • Authorizationheaderrequired

    Bearer rsk_…: the store's API key, from API Key in your Rassmi dashboard.

Body

  • customer_name string required

    Up to 255 characters.

  • customer_phone string required

    Algerian phone number, any common format.

  • customer_address string required

    Up to 500 characters.

  • customer_wilaya string required

    Wilaya code (16) or name (Alger, الجزائر). See List Wilayas.

  • customer_commune string

    Commune ID or name. See List Communes.

  • total_amount number required

    What the courier collects, in DZD.

  • shipping_fee number

    Delivery fee included in the total. Default 0.

  • payment_method string

    Default COD.

  • notes string

    Shown to the agent. Up to 1,000 characters.

  • items array

    1 to 100 lines. Each line: product_id (a product of this store) or product_name + unit_price, quantity, optional attributes ({"Taille": "M"}).

Responses

StatusMeaning
201Success. The body is shown on the right.
403The store does not take new orders (no agent past its grace period, or its monthly cap reached). code says which.
422Validation failed.
401Missing, unknown, paused or expired API key.
429More than 60 requests in a minute. See Rate limits.