cURL
curl --request POST \ --url https://api-beta.pepay.io/api/commerce/merchant/checkout/address \ --header 'Content-Type: application/json' \ --header 'x-commerce-api-key: <api-key>' \ --data ' { "customer_id": "cust_123456", "estimateId": "550e8400-e29b-41d4-a716-446655440000", "address": { "first_name": "Jane", "last_name": "Doe", "street_address": "123 Main St", "address_line2": "Apt 4B", "city": "Miami", "state": "FL", "zip_code": "33101", "country": "US", "phone": "+13055550123", "email": "[email protected]" } } '
{ "success": true, "data": { "addressId": "550e8400-e29b-41d4-a716-446655440222", "validated": true, "standardized": { "first_name": "Jane", "last_name": "Doe", "street_address": "123 Main St", "address_line2": "Apt 4B", "city": "Miami", "state": "FL", "zip_code": "33101", "country": "US", "phone": "+13055550123", "email": "[email protected]" }, "shippingOptions": [ { "id": "standard", "name": "Standard Shipping", "price": 5.99, "estimatedDays": "5-7 business days" } ] } }
Sets and validates shipping address for the order. Requires a valid estimate ID from step 1.
Legacy alias for commerce-scoped API keys. Prefer x-api-key with scope=commerce.
x-api-key
Step 2 request. Sets and validates the shipping address for an existing estimate.
"cust_123456"
Show child attributes
Address set successfully
true
Step 2 result. Address ID is used in Step 3 invoice creation.
Was this page helpful?