Creates an order in checkout state
Order
Created
Bad Request
Unauthorized
Not Found
Conflict
Internal Server Error
{- "reference": "string",
- "state": {
- "currentStatus": "checkout"
}, - "culture": "string",
- "currency": "string",
- "country": "string",
- "cart": {
- "reference": "string",
- "items": [
- {
- "id": "ci_FpEzyBvBBUyKxkeNriFUxZOCje",
- "reference": "string",
- "name": "T-Shirt XL",
- "sku": "A000123",
- "productType": "physical",
- "items": [
- { }
], - "quantity": 2,
- "unit": "st",
- "price": {
- "includingVat": 1234,
- "excludingVat": 987.2
}, - "total": {
- "includingVat": 1234,
- "excludingVat": 987.2
}, - "originalTotal": {
- "includingVat": 1234,
- "excludingVat": 987.2
}, - "vatRate": 0.25,
- "discounts": [
- {
- "type": "item",
- "name": "string",
- "code": "string",
- "value": {
- "includingVat": 1234,
- "excludingVat": 987.2
}, - "attributes": {
- "property1": null,
- "property2": null
}
}
], - "logistics": {
- "weight": 2500,
- "height": 100,
- "width": 50,
- "length": 200
}, - "attributes": {
- "property1": null,
- "property2": null
}
}
], - "discounts": [
- {
- "type": "item",
- "name": "string",
- "code": "string",
- "value": {
- "includingVat": 1234,
- "excludingVat": 987.2
}, - "attributes": {
- "property1": null,
- "property2": null
}
}
], - "total": {
- "includingVat": 1234,
- "excludingVat": 987.2
}, - "attributes": {
- "property1": null,
- "property2": null
}
}, - "customer": {
- "billing": {
- "type": "Person",
- "givenName": "Rosalinainho",
- "familyName": "Undulatsson",
- "careOf": "Olleinho Jyckesson",
- "reference": "string",
- "organizationName": "Storm",
- "streetAddress": "Adaptivevägen 18",
- "streetAddress2": "Lgh 1203",
- "postalCode": "955 60",
- "city": "Boden",
- "region": "Norrbotten",
- "country": "SE",
- "phone": "0753892233",
- "email": "rosalinainho.undulatsson@example.com",
- "nationalIdentificationNumber": "890201-3286",
- "organizationIdentificationNumber": "212000-1355",
- "attributes": {
- "property1": null,
- "property2": null
}
}, - "shipping": {
- "type": "Person",
- "givenName": "Rosalinainho",
- "familyName": "Undulatsson",
- "careOf": "Olleinho Jyckesson",
- "reference": "string",
- "organizationName": "Storm",
- "streetAddress": "Adaptivevägen 18",
- "streetAddress2": "Lgh 1203",
- "postalCode": "955 60",
- "city": "Boden",
- "region": "Norrbotten",
- "country": "SE",
- "phone": "0753892233",
- "email": "rosalinainho.undulatsson@example.com",
- "nationalIdentificationNumber": "890201-3286",
- "organizationIdentificationNumber": "212000-1355",
- "attributes": {
- "property1": null,
- "property2": null
}
}, - "type": "Person",
- "attributes": {
- "property1": null,
- "property2": null
}
}, - "consents": [
- {
- "id": "ci_newsleter",
- "checked": true,
- "text": "string",
- "required": true
}
], - "validations": [
- {
- "adapterId": "jetshop_adapter",
}
], - "hooks": [
- {
- "adapterId": "jetshop_adapter",
- "subscribeTo": "string",
- "target": "string",
- "version": "v0"
}
], - "notifications": [
- {
- "id": "ocGooDddTOjKOuFmNnkEozEpfuTh",
- "adapterId": "jetshop_adapter",
- "reference": "PuXCudQEiWTOHvquGGolFUVOuy",
- "description": "Export payment information to Jetshop when order has been completed.",
- "scope": "/state/currentStatus",
- "schema": {
- "const": "completed"
}, - "invoke": "{configuration.adapter.internalUrl}/api/v1/callbacks/orders/{order.id}/specific-callback",
- "version": "v0",
- "delay": 0
}
], - "total": {
- "includingVat": 1234,
- "excludingVat": 987.2
}, - "attributes": {
- "property1": null,
- "property2": null
}
}
"string"