Skip to main content

Create Order

POST 

https://api.sandbox.daslab.health/v3/orders

Creates an order.

Request

Body

required
    address object[]required

    Shipping, billing address for the order.

  • Array [
  • city stringrequired

    Name of acity or town.

    country stringrequired

    Country (must be a ISO 3166-1 alpha-2 letter code).

    line string[]required

    Street name, number, direction, etc.

    postalCode stringrequired

    Postal code for area.

    use stringrequired

    Possible values: Value must match regular expression /^home|billing$/u

    List of possible values defined here.

    phone stringnullable

    Contact phone number.

  • ]
  • customer object
    email stringrequired

    Customer email address.

    firstName stringrequired

    Customer first name.

    lastName stringrequired

    Customer last name.

    dateOfBirth string

    Date of birth of the patient.

    gender string

    Gender of the patient.

    isPatient boolean

    Flag to indicate if the customer is a patient.

    insuranceNumber stringnullable

    Insurance number of the patient.

    placerId stringrequired

    The order id within the placer's database.

    products object[]required

    List of products to be shipped for this order.

  • Array [
  • id string

    Id of the product.

    sku string

    SKU of the product.

  • ]
  • consents string[]

    Order consents

Responses

Created successfully.

Schema
    address object[]required
  • Array [
  • city stringrequired

    Name of acity or town.

    country stringrequired

    Country (must be a ISO 3166-1 alpha-2 letter code).

    line string[]required

    Street name, number, direction, etc.

    postalCode stringrequired

    Postal code for area.

    use stringrequired

    Possible values: Value must match regular expression /^home|billing$/u

    List of possible values defined here.

    phone stringnullable

    Contact phone number.

  • ]
  • createdAt date-timerequired
    customer objectrequired
    email stringrequired

    Customer email address.

    firstName stringrequired

    Customer first name.

    lastName stringrequired

    Customer last name.

    dateOfBirth string

    Date of birth of the patient.

    gender string

    Gender of the patient.

    isPatient boolean

    Flag to indicate if the customer is a patient.

    insuranceNumber stringnullable

    Insurance number of the patient.

    id stringrequired
    createdAt stringrequired
    updatedAt stringrequired
    id uuidrequired
    organizationId uuidrequired
    placerId stringrequired
    products object[]required
  • Array [
  • id stringrequired
    name stringrequired
    orderProductId stringrequired
    sku stringrequired
    specimens object[]required
  • Array [
  • containerId stringrequired
  • ]
  • statuses object[]required
  • Array [
  • createdAt stringrequired
    value stringrequired
  • ]
  • trackingCompany stringnullablerequired
    trackingId stringnullablerequired
    trackingUrl stringnullablerequired
  • ]
  • reference stringnullablerequired
    statuses object[]required
  • Array [
  • createdAt stringrequired
    value stringrequired
  • ]
  • updatedAt date-timerequired

Authorization: http

name: bearertype: httpscheme: bearerbearerFormat: JWT
curl -L -X POST 'https://api.sandbox.daslab.health/v3/orders' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"address": [
{
"city": "string",
"country": "string",
"line": [
"string"
],
"postalCode": "string",
"use": "string",
"phone": "string"
}
],
"customer": {
"email": "string",
"firstName": "string",
"lastName": "string",
"dateOfBirth": "string",
"gender": "string",
"isPatient": true,
"insuranceNumber": "string"
},
"placerId": "string",
"products": [
{
"id": "string",
"sku": "string"
}
],
"consents": [
"string"
]
}'
Request Collapse all
Base URL
https://api.sandbox.daslab.health
Auth
Body required
{
  "address": [
    {
      "city": "string",
      "country": "string",
      "line": [
        "string"
      ],
      "postalCode": "string",
      "use": "string",
      "phone": "string"
    }
  ],
  "customer": {
    "email": "string",
    "firstName": "string",
    "lastName": "string",
    "dateOfBirth": "string",
    "gender": "string",
    "isPatient": true,
    "insuranceNumber": "string"
  },
  "placerId": "string",
  "products": [
    {
      "id": "string",
      "sku": "string"
    }
  ],
  "consents": [
    "string"
  ]
}
ResponseClear

Click the Send API Request button above and see the response here!