cURL
curl --request POST \ --url https://commerce.driv.ly/api/addresses \ --header 'Authorization: <api-key>' \ --header 'Content-Type: application/json' \ --data ' { "updatedAt": "<string>", "createdAt": "<string>", "name": "<string>", "street": "<string>", "suite": "<string>", "city": "<string>", "state": "<string>", "zip": "<string>", "country": "<string>", "deals": [ 123 ], "tenants": 123, "customer": [ 123 ], "contact": [ 123 ] } '
{ "doc": { "updatedAt": "<string>", "createdAt": "<string>", "name": "<string>", "street": "<string>", "suite": "<string>", "city": "<string>", "state": "<string>", "zip": "<string>", "country": "<string>", "deals": [ 123 ], "tenants": 123, "customer": [ 123 ], "contact": [ 123 ] }, "message": "<string>" }
Create a new Address
Usage with the Drivly SDK
import { SDK } from '@drivly/commerce' import type { addresses } from '@drivly/commerce' const sdk = new SDK(...) const addresses = await sdk.addresses.create(data: addresses): Promise<addresses>
number of levels to automatically populate relationships and uploads
retrieves document(s) in a specific locale
specifies a fallback locale if no locale value exists
ok
Show child attributes