Change Customer on Order

PATCH /api/v1/orders/{id}/

Update the customer on an existing order by PATCHing the order resource with a new customer ID.

circle-info

This endpoint does not include sample textual description in the source. The request body requires a single integer field: customer.

Request example

request.json
{
    "customer": 123
}

Responses

200.json
{
    "id": 1629789747117569,
    "created_at": "2021-08-24T07:22:27Z",
    "updated_at": "2021-11-23T07:04:07.441338Z",
    "store_id": "patched_store_id",
    "type": "normal",
    "customer_email": null,
    "is_test": false,
    "customer_reference": "",
    "is_trial": false,
    "download_id": null,
    "language": null,
    "campaign_params": null,
    "customer_first_name": null,
    "customer_last_name": null,
    "customer_company": null,
    "customer_phone": null,
    "metadata": {},
    "company": 339,
    "customer": 123,
    "license_users": []
}

Body parameters

Name
Required
Type
Description

customer

required

integer

(integer)

Notes

  • Path parameter: {id} — the order ID to patch.

  • Try it out: not available (hasTryItOut: false).

Was this helpful?