SalesOrders

Create salesorder

post/sales-orders

Request

  • Base URL
    https://api.c1st.com/api
  • URL
    https://api.c1st.com/api/sales-orders
  • Auth
    HTTP bearer

Request body

Example request

{
  "content": {
    "customer": {
      "id": 1,
      "storeid": 1,
      "createddate": "2019-01-02 01:02:03",
      "name": "John Doe",
      "phone": "+4533608586",
      "phone_e164": "+4533608586",
      "country": "dk",
      "email": "johndoe@example.com",
      "barcode": "1234567890",
      "address": "Andebyvej 1",
      "city": "Odense",
      "zipcode": "5000",
      "addr_country": "dk",
      "birthdate": "1993-12-31",
      "ean": "12345678",
      "vat": "12345678",
      "customerno": "19181715",
      "economic_customernumber": 12345678,
      "balance": 123.45,
      "note": "Pays on time.",
      "tags": [
        {
          "color": "#4baf4f"
        }
      ],
      "permission_marketing": "2022-03-10 00:00:00",
      "updated_at": "2022-03-10 00:00:00",
      "deleted_at": "2022-03-10 00:00:00",
      "store": {
        "id": 1
      }
    },
    "payment": {
      "sum": 1
    }
  }
}

Response

Created

idinteger
storeidinteger
order_nointeger nullable
pospayment_idinteger nullable
customer_idinteger nullable
status'pending' | 'processing' | 'completed' | 'cancelled'
openboolean
notestring
draftboolean
created_atstring date-time
updated_atstring date-time
missing_quantityinteger nullable

Example response

{
  "customer": {
    "id": 1,
    "storeid": 1,
    "createddate": "2019-01-02 01:02:03",
    "name": "John Doe",
    "phone": "+4533608586",
    "phone_e164": "+4533608586",
    "country": "dk",
    "email": "johndoe@example.com",
    "barcode": "1234567890",
    "address": "Andebyvej 1",
    "city": "Odense",
    "zipcode": "5000",
    "addr_country": "dk",
    "birthdate": "1993-12-31",
    "ean": "12345678",
    "vat": "12345678",
    "customerno": "19181715",
    "economic_customernumber": 12345678,
    "balance": 123.45,
    "note": "Pays on time.",
    "tags": [
      {
        "color": "#4baf4f"
      }
    ],
    "permission_marketing": "2022-03-10 00:00:00",
    "updated_at": "2022-03-10 00:00:00",
    "deleted_at": "2022-03-10 00:00:00",
    "store": {
      "id": 1
    }
  },
  "payment": {
    "sum": 1
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.