For the complete documentation index, see llms.txt. This page is also available as Markdown.

Create an order

Create an order in Recart. It sends the associated receipt flow to the recipient. Flow must be active to send the message.

post
Authorizations
X-Recart-API-KeystringRequired

It can be obtained in Recart account after contacting Support

Body
Responses
202

Created

No content

post/orders
POST /app-integrations/2023-12/orders HTTP/1.1
Host: api.recart.com
X-Recart-API-Key: YOUR_API_KEY
Content-Type: application/vnd.api+json
Accept: */*
Content-Length: 507

{
  "data": {
    "type": "orders",
    "attributes": {
      "phoneNumber": "+36301234567",
      "sessionId": "655637bfaf3c6463c0f06d3e",
      "orderStatusUrl": "https://example.com/order",
      "orderNumber": "9007199254740991",
      "orderId": "9007199254740991",
      "totalPrice": {
        "value": 4.2,
        "currency": "USD"
      },
      "createdAt": "2021-08-10T14:00:00.000+02:00",
      "lineItems": [
        {
          "productId": "9007199254740991",
          "variantId": "9007199254740991",
          "name": "Product name",
          "quantity": 1,
          "price": {
            "value": 4.2,
            "currency": "USD"
          }
        }
      ],
      "discountCodes": [
        {
          "code": "DISCOUNT",
          "amount": 4.2
        }
      ]
    }
  }
}

No content

Last updated

Was this helpful?