> For the complete documentation index, see [llms.txt](https://docs.fieldmotion.com/fieldmotion-api-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fieldmotion.com/fieldmotion-api-docs/purchaseorder/_setdeliveryaddress.md).

# \_setDeliveryAddress

Sets the delivery address for a PurchaseOrder.

### Parameters

#### id

The ID of the PurchaseOrder.

#### delivery\_address

The delivery address to set.

### Example

```
FM_api('PurchaseOrder_setDeliveryAddress', ['id' => '1', 'delivery_address' => 'Belfast Road, Newry, Newry and Mourne, BT34 1QH]);
```

### Result

#### On Success

```
{'ok':1}
```

#### On Failure

If the User is not logged in:

```
{'error':'not logged in'}
```

If no ID is provided:

```
{'error':'no purchase order ID provided'}
```

If no delivery address is provided:

```
{'error':'no address provided'}
```
