Add Address
Changed onEndpoint to create an Address.
Request
- Base URLhttps://api.soldo.com
- AuthOAuth 2Client credentialsToken URLhttps://api.soldo.com/oauth/authorizeScopesaddress_write
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
Advanced authentication: SHA512SUM of the fingerprint values listed in the fingerprint order for this endpoint.
Advanced authentication: Signature of the X-Soldo-Fingerprint.
Request body
Example request
{
"recipient": "JohnSmith",
"name": "Actual address of John",
"line1": "Foo street 33",
"line2": "Second floor",
"county": "00000",
"city": "London",
"post_code": "00000",
"delivery_phone_number": "+44123323232",
"default_shipping": true,
"user_id": "XMPL1234-000003",
"cards_to_link": [
[
"7bf79328-a7ae-4222-aa54-091ff7f429a7",
"2d65bd5e-3fdf-4002-b166-bde7fb8863fa"
]
]
}Response
The returned resource is the single Address created.
Example response
{
"id": "7bf79328-a7ae-4222-aa54-091ff7f429a7",
"recipient": "JohnSmith",
"name": "Foo Street 75",
"line1": "Bar Street 64",
"line2": "Other street 31",
"country": "GB",
"county": "LD",
"city": "London",
"post_code": "00000",
"delivery_phone_number": "+441234567890",
"type": "SHIPPING",
"creation_time": "2017-06-01T12:48:40Z",
"last_update": "2017-06-01T12:48:40Z"
}Changes
- info
added the new
QZZenum value to the request property
- info
- breaking
added the new required request property
- warning
removed the request property
- warning
removed the request property
- warning
removed the request property
- warning
removed the request property
- warning
removed the request property
- warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
the request property
became optional - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- breaking