Nyehandel
  1. Order
Nyehandel
  • Introduction
  • Getting started
  • Webhooks
  • Filtering
  • API Reference
  • Order
    • Get order
      GET
    • Get orders
      GET
    • Create order
      POST
    • Deliver order
      POST
    • Update order
      POST
    • Get delivery notes
      GET
  • Shipping Method
    • Get Shipping methods
      GET
  • Product
    • Relation between products and variants
    • Get products
      GET
    • Update products batch
      PUT
    • Create products batch
      POST
    • Create product
      POST
    • Update product
      PUT
    • Create variant
      POST
    • Find product by sku or id
      GET
    • Delete product
      DELETE
  • Variant
    • Update variant batch
      PUT
    • Update variant
      PUT
    • Delete product variant
      DELETE
    • Find variant
      GET
  • Payment Method
    • Get Payment methods
  • Customer
    • Get Customer
    • Get Customers
    • Create Customer
  • Category
    • Create category
    • Update category
    • Get category
    • Delete category
    • Get categories
  • Currency
    • Get currencies
  • Headless
    • Pages
      • Get Page
      • Get Pages
    • Categories
      • Get Pages
      • Get Category
    • Startpage
    • System
  • Purchase
    • Get purchases
  1. Order

Create order

POST
/orders
Create an order
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/orders' \
--header 'X-Identifier: {{x_identifier}}' \
--header 'Authorization: Bearer {{token}}' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data-raw '{
	"currency_iso": "SEK",
	"locale": "SV-se",
	"customer": {
		"type": "organization",
		"email": "manual_order@nyehandel.se",
		"phone": "0733111111",
		"ssn": "9001011234",
		"organization_number": "5592412075"
	},
	"billing_address": {
		"company_name": "Företaget AB",
		"firstname": "Peter",
		"lastname": "Nilsson",
		"address": "Testgatan 11",
		"postcode": "12345",
		"city": "Kristianstad",
		"country": "SE"
	},
	"shipping_address": {
		"company_name": "Företag två AB",
		"firstname": "Nils",
		"lastname": "Petersson",
		"address": "Skeppsvägen 620",
		"postcode": "54321",
		"city": "Hässleholm",
		"country": "SE"
	},
	"shipping": {
		"name": "Postnord - MyPack",
		"price_ex_vat": 10000,
		"price_inc_vat": 12500
	},
	"payment": {
		"name": "Faktura",
		"price_ex_vat": 10000,
		"price_inc_vat": 12500
	},
	"items": [
		{
			"type": "product",
			"sku": "117849",
			"quantity": 3,
			"price_ex_vat": 10000,
			"price_inc_vat": 12500
		}
	]
}'
Response Response Example
{
    "data": {
        "id": 0,
        "currency_iso": "string",
        "order_items": [
            {
                "id": 0,
                "sku": "string",
                "name": "string",
                "type": "string",
                "quantity": "string",
                "unit": "string",
                "vat_rate": 0,
                "unit_price": 0,
                "total_amount": 0,
                "image_url": "string",
                "variant_url": "string"
            }
        ],
        "customer": {
            "id": 0,
            "customer_type": "string",
            "firstname": "string",
            "lastname": "string",
            "email": "string",
            "phone": null,
            "ssn": null,
            "created_at": "string",
            "updated_at": "string",
            "billing_address": {
                "address": "string",
                "address2": null,
                "co_address": null,
                "postcode": "string",
                "city": "string",
                "state": null,
                "country": "string",
                "company_name": null,
                "firstname": "string",
                "lastname": "string"
            },
            "shipping_address": {
                "address": "string",
                "address2": null,
                "co_address": null,
                "postcode": "string",
                "city": "string",
                "state": null,
                "country": "string",
                "company_name": null,
                "firstname": "string",
                "lastname": "string"
            }
        },
        "billing_address": {
            "address": "string",
            "address2": null,
            "co_address": null,
            "postcode": "string",
            "city": "string",
            "state": null,
            "country": "string",
            "company_name": "string",
            "firstname": "string",
            "lastname": "string"
        },
        "shipping_address": {
            "address": "string",
            "address2": null,
            "co_address": null,
            "postcode": "string",
            "city": "string",
            "state": null,
            "country": "string",
            "company_name": "string",
            "firstname": "string",
            "lastname": "string"
        },
        "shipping": {
            "name": "string",
            "vat_rate": 0,
            "total_amount": 0
        },
        "payment": {
            "name": "string",
            "vat_rate": 0,
            "total_amount": 0
        },
        "created_at": "string",
        "updated_at": "string"
    }
}

Request

Header Params

Body Params application/json

Examples

Responses

🟢200Success
application/json
Body

Modified at 2025-08-12 06:52:19
Previous
Get orders
Next
Deliver order
Built with