Addresses
Reusable, validated address book entries.
/api/v1/addressesAuthorization
ApiKeyAuth Authenticate with your secret API key in the Authorization header: Authorization: Bearer fk_live_.... Use an fk_test_ key to operate against test mode, which never contacts a carrier or moves real freight.
In: header
Query Parameters
Page size. Defaults to a server-chosen value; maximum 100.
1 <= value <= 100Cursor: return records after this id.
Cursor: return records before this id.
Filter by customer.
0 <= valueResponse Body
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/api/v1/addresses"{ "object": "list", "data": [ { "object": "address", "id": 0, "company": "string", "contact": "string", "address": "string", "city": "string", "state": "string", "zip": "string", "phone": "string", "email": "string", "created_at": "string" } ], "has_more": true, "url": "/api/v1/addresses"}/api/v1/addressesAuthorization
ApiKeyAuth Authenticate with your secret API key in the Authorization header: Authorization: Bearer fk_live_.... Use an fk_test_ key to operate against test mode, which never contacts a carrier or moves real freight.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/api/v1/addresses" \ -H "Content-Type: application/json" \ -d '{ "address": "string", "city": "string", "state": "st", "zip": "string" }'{ "object": "address", "id": 0, "company": "string", "contact": "string", "address": "string", "city": "string", "state": "string", "zip": "string", "phone": "string", "email": "string", "created_at": "string"}/api/v1/addresses/{id}Authorization
ApiKeyAuth Authenticate with your secret API key in the Authorization header: Authorization: Bearer fk_live_.... Use an fk_test_ key to operate against test mode, which never contacts a carrier or moves real freight.
In: header
Path Parameters
Resource identifier.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/api/v1/addresses/string"{ "object": "address", "id": 0, "company": "string", "contact": "string", "address": "string", "city": "string", "state": "string", "zip": "string", "phone": "string", "email": "string", "created_at": "string"}/api/v1/addresses/{id}Authorization
ApiKeyAuth Authenticate with your secret API key in the Authorization header: Authorization: Bearer fk_live_.... Use an fk_test_ key to operate against test mode, which never contacts a carrier or moves real freight.
In: header
Path Parameters
Resource identifier.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X PATCH "https://example.com/api/v1/addresses/string" \ -H "Content-Type: application/json" \ -d '{}'{ "object": "address", "id": 0, "company": "string", "contact": "string", "address": "string", "city": "string", "state": "string", "zip": "string", "phone": "string", "email": "string", "created_at": "string"}/api/v1/addresses/{id}Authorization
ApiKeyAuth Authenticate with your secret API key in the Authorization header: Authorization: Bearer fk_live_.... Use an fk_test_ key to operate against test mode, which never contacts a carrier or moves real freight.
In: header
Path Parameters
Resource identifier.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X DELETE "https://example.com/api/v1/addresses/string"{ "object": "address", "id": 0, "deleted": true}/api/v1/addresses/validateNormalises and verifies an address without persisting it.
Authorization
ApiKeyAuth Authenticate with your secret API key in the Authorization header: Authorization: Bearer fk_live_.... Use an fk_test_ key to operate against test mode, which never contacts a carrier or moves real freight.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/api/v1/addresses/validate" \ -H "Content-Type: application/json" \ -d '{ "address": "string", "city": "string", "state": "st", "zip": "string" }'{ "object": "address_validation", "valid": true, "normalized": { "object": "address", "id": 0, "company": "string", "contact": "string", "address": "string", "city": "string", "state": "string", "zip": "string", "phone": "string", "email": "string", "created_at": "string" }, "messages": [ "string" ]}