๐ Delivery Addresses
Delivery address management and configuration endpoints. 9 endpoints available.
๐ฏ Quick Stats
- Total Endpoints: 9
- Base URL:
https://api.market.decenctype.com - Authentication: Bearer Token / API Key
๐ Methods
- ๐ POST: 1 endpoints
- ๐ GET: 5 endpoints
- โ๏ธ PUT: 2 endpoints
- ๐๏ธ DELETE: 1 endpoints
๐ Authentication
All endpoints in this section use the same authentication methods. Choose one:
๐ Bearer Token (Recommended)
For user session authentication
Add to request headers:
Authorization: Bearer YOUR_TOKEN๐ง API Key
For server-side authentication
Add to request headers:
X-API-KEY: YOUR_API_KEYโ ๏ธ Important: Do not use both authentication methods simultaneously in the same request.
๐ Endpoints Overview
| Method | Endpoint | Description |
|---|---|---|
๐ POST | /delivery/address | Create delivery address |
๐ GET | /delivery/address | Get user address list |
๐ GET | /delivery/address/merchant/{merchantId} | Get merchant address list |
๐ GET | /delivery/address/pagination | Get paginated address list |
๐ GET | /delivery/address/{deliveryAddressId} | Get address details |
โ๏ธ PUT | /delivery/address/{deliveryAddressId} | Update address |
๐๏ธ DELETE | /delivery/address/{deliveryAddressId} | Delete address |
โ๏ธ PUT | /delivery/address/{deliveryAddressId}/default | Set default address |
๐ GET | /delivery/address/default/current | Get current default address |
๐ Detailed Documentation
Create delivery address
/delivery/addresshttps://api.market.decenctype.com/delivery/address๐ Request Body Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
userId | string | โ | ็จๆทID |
merchantId | string | โ | ๅๆทID |
type | string (user, merchant) | โ | ็ฑปๅ |
recipientTitle | string | โ | ๆถไปถไบบ็งฐ่ฐ (Mr./Ms./Mrs./Dr.) |
firstName | string | โ | ๅ |
lastName | string | โ | ๅง |
nationality | string | โ | ๅฝๅฎถ็ (ISO 3166-1) |
addressState | string | โ | ๅท/็ (ๅฆ็พๅฝ็ CA, NY ็ญ) |
city | string | โ | ๅๅธ |
line1 | string | โ | ่ฏฆ็ปๅฐๅ |
line2 | string | โ | ่ฏฆ็ปๅฐๅ2 |
postalCode | string | โ | ้ฎ็ผ |
phoneAreaCode | string | โ | ็ต่ฏๅบๅท |
phoneNumber | string | โ | ็ต่ฏๅท็ |
email | string | โ | ้ฎ็ฎฑๅฐๅ |
alias | string | โ | ๅซๅ, ็จไบๅฟซ้ๅบๅไธๅๅฐๅ |
defaultFlag | boolean | โ | ๆฏๅฆ่ฎพ็ฝฎ้ป่ฎค |
Description: Create delivery address
Operation ID: createAddress
Response Status:
- โ 201: Address created successfully
๐ Response Examples
1{2 "deliveryAddressId": "example-id",3 "userId": "example-id",4 "merchantId": "example-id",5 "type": {},6 "recipientTitle": "example-recipientTitle",7 "firstName": "example-firstName",8 "lastName": "example-lastName",9 "nationality": "example-nationality",10 "addressState": "example-addressState",11 "city": "example-city",12 "line1": "example-line1",13 "line2": "example-line2",14 "postalCode": "example-postalCode",15 "phoneAreaCode": "example-phoneAreaCode",16 "phoneNumber": "example-phoneNumber",17 "email": "user@example.com",18 "alias": "example-alias",19 "defaultFlag": true,20 "user": "example-user",21 "merchant": "example-merchant"22}๐ Example Request
curl -X POST "https://api.market.decenctype.com/delivery/address" \\
-H "Authorization: Bearer YOUR_TOKEN" \\
-H "Content-Type: application/json" \\
-d '{
"type": "user",
"firstName": "example-firstName",
"lastName": "example-lastName",
"nationality": "example-nationality",
"city": "example-city",
"line1": "example-line1",
"line2": "example-line2",
"postalCode": "example-postalCode",
"phoneAreaCode": "example-phoneAreaCode",
"phoneNumber": "example-phoneNumber",
"email": "user@example.com",
"alias": "example-alias",
"defaultFlag": true
}'Get user address list
/delivery/addresshttps://api.market.decenctype.com/delivery/address๐ Authentication: Required (see authentication section above)
Description: Get user address list
Operation ID: getAddressList
Response Status:
- โ 200: Address list retrieved successfully
๐ Response Examples
1[2 {3 "deliveryAddressId": "example-id",4 "userId": "example-id",5 "merchantId": "example-id",6 "type": {},7 "recipientTitle": "example-recipientTitle",8 "firstName": "example-firstName",9 "lastName": "example-lastName",10 "nationality": "example-nationality",11 "addressState": "example-addressState",12 "city": "example-city",13 "line1": "example-line1",14 "line2": "example-line2",15 "postalCode": "example-postalCode",16 "phoneAreaCode": "example-phoneAreaCode",17 "phoneNumber": "example-phoneNumber",18 "email": "user@example.com",19 "alias": "example-alias",20 "defaultFlag": true,21 "user": "example-user",22 "merchant": "example-merchant"23 }24]๐ Example Request
curl -X GET "https://api.market.decenctype.com/delivery/address" \\
-H "Authorization: Bearer YOUR_TOKEN" \\
-H "Content-Type: application/json"Get merchant address list
/delivery/address/merchant/{merchantId}https://api.market.decenctype.com/delivery/address/merchant/{merchantId}๐ฏ Path Parameters
merchantId(string) - โ Required: Merchant ID
Description: Get merchant address list
Operation ID: getMerchantAddressList
Response Status:
- โ 200: Merchant address list retrieved successfully
๐ Response Examples
1[2 {3 "deliveryAddressId": "example-id",4 "userId": "example-id",5 "merchantId": "example-id",6 "type": {},7 "recipientTitle": "example-recipientTitle",8 "firstName": "example-firstName",9 "lastName": "example-lastName",10 "nationality": "example-nationality",11 "addressState": "example-addressState",12 "city": "example-city",13 "line1": "example-line1",14 "line2": "example-line2",15 "postalCode": "example-postalCode",16 "phoneAreaCode": "example-phoneAreaCode",17 "phoneNumber": "example-phoneNumber",18 "email": "user@example.com",19 "alias": "example-alias",20 "defaultFlag": true,21 "user": "example-user",22 "merchant": "example-merchant"23 }24]๐ Example Request
curl -X GET "https://api.market.decenctype.com/delivery/address/merchant/example-id" \\
-H "Authorization: Bearer YOUR_TOKEN" \\
-H "Content-Type: application/json"Get paginated address list
/delivery/address/paginationhttps://api.market.decenctype.com/delivery/address/pagination๐ Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
page | string | โ | Page number (็คบไพ: 1) |
pageSize | string | โ | Items per page (็คบไพ: 10) |
search | string | โ | Search keyword |
merchantId | string | โ | Merchant ID for merchant addresses |
Description: Get paginated address list
Operation ID: getAddressListWithPagination
Response Status:
- โ 200: Paginated address list retrieved successfully
๐ Example Request
curl -X GET "https://api.market.decenctype.com/delivery/address/pagination" \\
-H "Authorization: Bearer YOUR_TOKEN" \\
-H "Content-Type: application/json"Get address details
/delivery/address/{deliveryAddressId}https://api.market.decenctype.com/delivery/address/{deliveryAddressId}๐ฏ Path Parameters
deliveryAddressId(string) - โ Required: Address ID
Description: Get address details
Operation ID: getAddressById
Response Status:
- โ 200: Address details retrieved successfully
๐ Response Examples
1{2 "deliveryAddressId": "example-id",3 "userId": "example-id",4 "merchantId": "example-id",5 "type": {},6 "recipientTitle": "example-recipientTitle",7 "firstName": "example-firstName",8 "lastName": "example-lastName",9 "nationality": "example-nationality",10 "addressState": "example-addressState",11 "city": "example-city",12 "line1": "example-line1",13 "line2": "example-line2",14 "postalCode": "example-postalCode",15 "phoneAreaCode": "example-phoneAreaCode",16 "phoneNumber": "example-phoneNumber",17 "email": "user@example.com",18 "alias": "example-alias",19 "defaultFlag": true,20 "user": "example-user",21 "merchant": "example-merchant"22}๐ Example Request
curl -X GET "https://api.market.decenctype.com/delivery/address/example-id" \\
-H "Authorization: Bearer YOUR_TOKEN" \\
-H "Content-Type: application/json"Update address
/delivery/address/{deliveryAddressId}https://api.market.decenctype.com/delivery/address/{deliveryAddressId}๐ฏ Path Parameters
deliveryAddressId(string) - โ Required: Address ID
Description: Update address
Operation ID: updateAddress
Response Status:
- โ 200: Address updated successfully
๐ Response Examples
1{2 "deliveryAddressId": "example-id",3 "userId": "example-id",4 "merchantId": "example-id",5 "type": {},6 "recipientTitle": "example-recipientTitle",7 "firstName": "example-firstName",8 "lastName": "example-lastName",9 "nationality": "example-nationality",10 "addressState": "example-addressState",11 "city": "example-city",12 "line1": "example-line1",13 "line2": "example-line2",14 "postalCode": "example-postalCode",15 "phoneAreaCode": "example-phoneAreaCode",16 "phoneNumber": "example-phoneNumber",17 "email": "user@example.com",18 "alias": "example-alias",19 "defaultFlag": true,20 "user": "example-user",21 "merchant": "example-merchant"22}๐ Example Request
curl -X PUT "https://api.market.decenctype.com/delivery/address/example-id" \\
-H "Authorization: Bearer YOUR_TOKEN" \\
-H "Content-Type: application/json"Delete address
/delivery/address/{deliveryAddressId}https://api.market.decenctype.com/delivery/address/{deliveryAddressId}๐ฏ Path Parameters
deliveryAddressId(string) - โ Required: Address ID
Description: Delete address
Operation ID: deleteAddress
Response Status:
- โ 200: Address deleted successfully
๐ Response Examples
1{2 "deliveryAddressId": "example-id",3 "userId": "example-id",4 "merchantId": "example-id",5 "type": {},6 "recipientTitle": "example-recipientTitle",7 "firstName": "example-firstName",8 "lastName": "example-lastName",9 "nationality": "example-nationality",10 "addressState": "example-addressState",11 "city": "example-city",12 "line1": "example-line1",13 "line2": "example-line2",14 "postalCode": "example-postalCode",15 "phoneAreaCode": "example-phoneAreaCode",16 "phoneNumber": "example-phoneNumber",17 "email": "user@example.com",18 "alias": "example-alias",19 "defaultFlag": true,20 "user": "example-user",21 "merchant": "example-merchant"22}๐ Example Request
curl -X DELETE "https://api.market.decenctype.com/delivery/address/example-id" \\
-H "Authorization: Bearer YOUR_TOKEN" \\
-H "Content-Type: application/json"Set default address
/delivery/address/{deliveryAddressId}/defaulthttps://api.market.decenctype.com/delivery/address/{deliveryAddressId}/default๐ฏ Path Parameters
deliveryAddressId(string) - โ Required: Address ID
Description: Set default address
Operation ID: setDefaultAddress
Response Status:
- โ 200: Default address set successfully
๐ Response Examples
1{2 "deliveryAddressId": "example-id",3 "userId": "example-id",4 "merchantId": "example-id",5 "type": {},6 "recipientTitle": "example-recipientTitle",7 "firstName": "example-firstName",8 "lastName": "example-lastName",9 "nationality": "example-nationality",10 "addressState": "example-addressState",11 "city": "example-city",12 "line1": "example-line1",13 "line2": "example-line2",14 "postalCode": "example-postalCode",15 "phoneAreaCode": "example-phoneAreaCode",16 "phoneNumber": "example-phoneNumber",17 "email": "user@example.com",18 "alias": "example-alias",19 "defaultFlag": true,20 "user": "example-user",21 "merchant": "example-merchant"22}๐ Example Request
curl -X PUT "https://api.market.decenctype.com/delivery/address/example-id/default" \\
-H "Authorization: Bearer YOUR_TOKEN" \\
-H "Content-Type: application/json"Get current default address
/delivery/address/default/currenthttps://api.market.decenctype.com/delivery/address/default/current๐ Authentication: Required (see authentication section above)
Description: Get current default address
Operation ID: getDefaultAddress
Response Status:
- โ 200: Default address retrieved successfully
๐ Response Examples
1{2 "deliveryAddressId": "example-id",3 "userId": "example-id",4 "merchantId": "example-id",5 "type": {},6 "recipientTitle": "example-recipientTitle",7 "firstName": "example-firstName",8 "lastName": "example-lastName",9 "nationality": "example-nationality",10 "addressState": "example-addressState",11 "city": "example-city",12 "line1": "example-line1",13 "line2": "example-line2",14 "postalCode": "example-postalCode",15 "phoneAreaCode": "example-phoneAreaCode",16 "phoneNumber": "example-phoneNumber",17 "email": "user@example.com",18 "alias": "example-alias",19 "defaultFlag": true,20 "user": "example-user",21 "merchant": "example-merchant"22}๐ Example Request
curl -X GET "https://api.market.decenctype.com/delivery/address/default/current" \\
-H "Authorization: Bearer YOUR_TOKEN" \\
-H "Content-Type: application/json"