For the complete documentation index, see llms.txt. This page is also available as Markdown.

Select an address for scheduled delivery

Selects an address of the calling account as the delivery address for scheduled delivery. No request body is needed; any body is ignored. The address record itself is not changed — use PUT /addresses/{id}/ with primary set to true to make an address primary.

This operation has an effect only while scheduled delivery is active in the server configuration (SCHEDULED_DELIVERY_CONF). Then the items that are no longer available are removed from the basket of the calling account. While scheduled delivery is inactive (default), the operation changes nothing and only returns the address.

patch
/addresses/{id}/set_address/
Authorizations
AuthorizationstringRequired

Token credential sent in the Authorization header, in the form: Token <your-token>. Requires a staff (admin) account.

Path parameters
idintegerRequired

The unique identifier of the address. Only addresses of the calling account can be addressed; any other identifier returns 404.

Responses
200

The selected address, wrapped in an address property.

application/json

The response of the set-address operation.

patch/addresses/{id}/set_address/
PATCH /api/v1/remote/1/addresses/{id}/set_address/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Accept: */*
{
  "address": {
    "pk": 42,
    "email": "jane.doe@example.com",
    "phone_number": "05551234567",
    "first_name": "Jane",
    "last_name": "Doe",
    "country": 1,
    "city": 34,
    "township": 410,
    "district": 5123,
    "line": "Example Street No 12 Flat 3",
    "title": "Home",
    "postcode": "34710",
    "notes": "Ring the bell twice.",
    "company_name": null,
    "tax_office": null,
    "tax_no": null,
    "e_bill_taxpayer": false,
    "hash_data": "3f1c2a9b8e7d6c5b4a39281706f5e4d3",
    "address_type": "customer",
    "retail_store": null,
    "remote_id": null,
    "identity_number": null,
    "extra_field": null,
    "user": 7,
    "is_corporate": false,
    "primary": true
  }
}

Last updated

Was this helpful?