| Name | Type | Description |
|---|---|---|
firstName | string | The first name of the user. |
lastName | string | The last name of the user. |
company | string | The company name of the user. |
addressLineOne | string | The primary address line of the user. |
addressLineTwo | string | The secondary address line of the user (optional). |
addressLineThree | string | Additional address details (optional). |
city | string | The city where the user is located. |
state | string | The state where the user is located. |
country | string | The country code of the user's location (ISO 3166-1 alpha-2). |
postalCode | string | The postal code of the user. |
phoneCc | string | The country code for the user's phone number. |
phone | string | The phone number of the user. |
workspaceId | string | The unique ID of the workspace the user belongs to. |
{
"firstName": "Michael",
"lastName": "Johnson",
"company": "Tech Innovations",
"addressLineOne": "2207 Maple Avenue, Suite 500",
"addressLineTwo": "Building B",
"addressLineThree": null,
"city": "Dallas",
"state": "Texas",
"country": "US",
"postalCode": "75201",
"phoneCc": "1",
"phone": "2149876543",
"workspaceId": "44c5fd3a-d680-4808-8c6c-8d6c2043021b"
}curl --location --request POST 'https://api.zapmail.ai/api/v1/billing-details/add-or-update' \
--header 'x-auth-zapmail: ' \
--header 'Content-Type: application/json' \
--data-raw '{
"firstName": "Michael",
"lastName": "Johnson",
"company": "Tech Innovations",
"addressLineOne": "2207 Maple Avenue, Suite 500",
"addressLineTwo": "Building B",
"addressLineThree": null,
"city": "Dallas",
"state": "Texas",
"country": "US",
"postalCode": "75201",
"phoneCc": "1",
"phone": "2149876543"
}'{
"status": 200,
"message": "Billing details added successfully",
"data": null
}