Customer - Orders

Get orders of current customer

Endpoint

GET /v1/customer_orders

Request

curl "https://capi.storyblok.com/v1/customer_sessions" -d '{"email":"evelin.schiller@bins.us","password":"eN1rzmR3feigf"}' -X POST \
	-H "Authorization: Token token=d49b72fc2e361dfe068e7b30a7614ffd" \
	-H "Content-Type: application/json"

Response

{
  "id": 7223,
  "email": "evelin.schiller@bins.us",
  "company": "",
  "firstname": "",
  "lastname": "",
  "phone": "",
  "mobile": "",
  "sex": true,
  "email_subscribe": null,
  "birthday": null,
  "active": true,
  "group_id": 41858,
  "confirmed": false,
  "company_alt": "",
  "company_registration": "",
  "company_registration_alt": "",
  "subscribed": false,
  "job": "",
  "company_description": "",
  "origin_id": null,
  "euid": null,
  "default_billing_address": null,
  "default_shipping_address": null,
  "meta_data": null
}

Request

curl "https://capi.storyblok.com/v1/customer_orders" -X GET \
	-H "Accept: application/json" \
	-H "Content-Type: application/json"
	-H "Authorization: Token token=d49b72fc2e361dfe068e7b30a7614ffd" \
	-H "Cookie: _storeblok_cky=bGpaN3hIWE1JVDZ6WjZ0Z3dHN3dDbStDaUdDRTM2cEdmcDlmTG1ob1dFTjFKNE5pQWRscUowZzRrcWxGQUlFNHI3WFpWMGFuOTNBY0JlT3JkM2tkUy9ESHorWU5iU29VRHZod0NLVlJaTi9kaHE2L0pxZFlQWE1LZERROFlqbHlqeENMeWVoQTRtN0MwVzZUQ1Y0RVNXQnB3SjlnSzRDS1p2QTZWN2RRQVVjTGphbkZkTDRETmRldUFyLzlBRnpaLS1adllocEtkdVZISU1IVGMvTFNpRWRnPT0%3D--295f9621345edd2fcf6be5ead1efbe726a48dad8" \
	-H "Host: example.org"

Response

[

]

Getting an order

Endpoint

GET /v1/customer_orders/:id

Request

curl "https://capi.storyblok.com/v1/customer_sessions" -d '{"email":"zoila_kunze@gutkowskihodkiewicz.name","password":"AENwcbs5oGaNz"}' -X POST \
	-H "Authorization: Token token=ee7e9846edd4638ae97e94815d1d360d" \
	-H "Content-Type: application/json"

Response

{
  "id": 7224,
  "email": "zoila_kunze@gutkowskihodkiewicz.name",
  "company": "",
  "firstname": "",
  "lastname": "",
  "phone": "",
  "mobile": "",
  "sex": true,
  "email_subscribe": null,
  "birthday": null,
  "active": true,
  "group_id": 41860,
  "confirmed": false,
  "company_alt": "",
  "company_registration": "",
  "company_registration_alt": "",
  "subscribed": false,
  "job": "",
  "company_description": "",
  "origin_id": null,
  "euid": null,
  "default_billing_address": null,
  "default_shipping_address": null,
  "meta_data": null
}

Request

curl "https://capi.storyblok.com/v1/customer_orders/153072341519" -X GET \
	-H "Accept: application/json" \
	-H "Content-Type: application/json"
	-H "Authorization: Token token=ee7e9846edd4638ae97e94815d1d360d" \
	-H "Cookie: _storeblok_cky=cDZoSmVKbG12ZlhoQkRZdytiVzExMFhRMFBXcTgwSG9zb09iSkpUbUdVMzVmRks0U0c0SmtPY3NoK2EwWkRGeHN4V0pCNGIybk4yNXN0R2JDNlBuUkpYQ0FFMFhERjdzaGZQZWtCVUN2d05McjhGU0xxVDdrN1hRd1huQnp6eTQxTGxVcmlCQ3VZTXIvazczZ0hLZUZLTWJjZkt2VXB4Y1Y4VVVmVERKV3FrMm1wbHNzWkpQSHljaHZnc1B5U1hmLS1hT1BMaXQwcVpCYyt5Q2V6MHBoTDFRPT0%3D--1e54034ee8a7920d93e2091916a330c91037397a" \
	-H "Host: example.org"

Response

{
  "id": 10349,
  "order_number": "153072341519",
  "total": 10.5,
  "ordered_on": "2018-07-04T16:56:33.000Z",
  "shipped_on": null,
  "currency": "EUR",
  "delivery_time": 0,
  "shipping_notes": null,
  "tracking_number": "",
  "status": "Open",
  "email": "",
  "notes": null,
  "ship_address": null,
  "bill_address": null,
  "payments": [

  ],
  "subtotal": 10.5,
  "affiliate_id": null,
  "shipping_method": "test",
  "coupon_discount": 0.0,
  "language": "",
  "shipping": 0.0,
  "tax": 0.0,
  "histories": [
    {
      "id": 7826,
      "order_id": 10349,
      "order_status": "Open",
      "created_at": "2018-07-04T16:56:55.000Z",
      "updated_at": "2018-07-04T16:56:55.000Z",
      "action": "New status: Open"
    }
  ],
  "order_items": [

  ],
  "item_returns": [

  ]
}