Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 61 additions & 0 deletions instance-api/addingAddresses.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
---
label: Adding Addresses
tags: [manage, nft]
order: 4
authors:
- name: Kacper Hernacki
email: kacper@licenserocks.de
avatar: ../static/kacper.jpeg
link: https://twitter.com/KacperHernacki
---
# Adding addresses

When it comes to creating orders, you need to provide billing and shipping addresses. In this section you will learn how to add them to your platform.

## Billing address

Use below endpoint in order to create new billing address for a user.

```
POST https://{INSTANCE_URL}/api/public/billingAddress
```
## Delivery address

Use below endpoint in order to create new delivery address for a user.

```
POST https://{INSTANCE_URL}/api/public/deliveryAddress
```
## Body of the request

No matter if you use the billing or delivery address endpoint, the body of the request is the same.

```json Payload (application/json)
{
"street": "street 123",
"postal": "12345",
"city": "Berlin",
"country": "Germany",
"companyName": "Licenserocks",
"taxId": "1234567890",
"userId": 12
}
```

## Response

```json Response (application/json)
{
"billingAddress": {
"id": 13,
"street": "street 123",
"postal": "12345",
"city": "Berlin",
"country": "Germany",
"companyName": "Licenserocks",
"taxId": "1234567890",
"userId": 12,
"isDefault": false
}
}
```
Loading