Create a shipping address and attach it to a profile.
cURL
curl --request POST \ --url https://api.buybase.ai/shipping/create \ --header 'Content-Type: application/json' \ --header 'authorization: <authorization>' \ --data ' { "shipping_address": { "first_name": "<string>", "last_name": "<string>", "email": "<string>", "phone": "<string>", "address_1": "<string>", "address_2": "<string>", "city": "<string>", "country_code": "<string>", "province_code": "<string>", "postal_code": "<string>" }, "profile_id": "<string>" } '
{ "success": true, "shipping": { "id": "ship_12345", "first_name": "John", "last_name": "Doe", "email": "[email protected]", "phone": "+1234567890", "address_1": "123 Main St", "address_2": "Apt 4B", "city": "New York", "country_code": "US", "province_code": "NY", "postal_code": "10001", "profile_id": "prof_67890", "created_at": "2023-09-15T14:22:31Z" }, "attached_profile_id": "prof_67890", "code": "SHIPPING_CREATED" }
Show Shipping Address Object
SHIPPING_CREATED
SHIPPING_CREATION_FAILED