GET Account Address - TextKing/textking-api GitHub Wiki

GET /account/address/{addressId}

Request: GET /account/address/{addressId}

Returns a single billing addresses of the current customer with the given ID.

Request headers

Header Description
Authorization oAuth 2 authentication header
Accept application/json or application/xml

Response status codes

HTTP status Description
200 Ok Successful request.
400 Bad Request The address ID is not a valid UUID.
404 Not Found The address with the given ID does not exist.

Example

Load the billing address with the ID 9c6f23b6-167d-4b01-977f-4de799e3abf3:

GET /v1/account/address/9c6f23b6-167d-4b01-977f-4de799e3abf3 HTTP/1.1
Host: api.textking.com
Accept: application/json
Authorization: Bearer youraccesstoken

Response:

HTTP/1.1 200 Ok
Content-Type: application/json; charset=utf-8

{
	"id": "9c6f23b6-167d-4b01-977f-4de799e3abf3",
	"company": "TEXTKING Deutschland GmbH",
	"vat_number": "DE280599152",
	"street": "Storkowerstr. 115",
	"zip": "10407",
	"city": "Berlin",
	"country": "DE",
	"firstname": "Jann-Martin",
	"lastname": "Mauer",
	"gender": "male",
	"is_default": true,
	"links": [
		{
			"rel": "self",
			"href": "https://api.textking.com/v1/account/address/9c6f23b6-167d-4b01-977f-4de799e3abf3"
		}
	]
}
⚠️ **GitHub.com Fallback** ⚠️