Update User Invoicing
Update the invoicing settings for a specific user. This endpoint is for administrators to modify any user's invoicing data.
PATCH
/v2/projects/{project_id}/users/{user_id}/invoicingAuthorization
Bearer TokenRequired
Path Parameters
project_idstringRequired
The unique identifier of the project.
user_idstringRequired
The user ID to update invoicing settings for.
Request Body
namestring
Full name for invoicing.
emailstring
Email address for invoicing.
addressstring
Street address.
citystring
City name.
regionstring
State, province, or region.
postalstring
Postal or ZIP code.
countrystring
Country code (e.g., US, GB).
vat_numberstring
VAT registration number (for EU businesses).
Request
curl -X PATCH "https://api.botsubscription.com/v2/projects/YOUR_PROJECT_ID/users/123456789012345678/invoicing" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "John Doe",
"email": "[email protected]",
"address": "123 Main St",
"city": "New York",
"region": "NY",
"postal": "10001",
"country": "US"
}'{
"ok": true,
"request_id": "11111111-1111-1111-1111-111111111111",
"method": "PATCH",
"path": "/v2/projects/YOUR_PROJECT_ID/users/123456789012345678/invoicing",
"code": 200,
"data": {
"name": "John Doe",
"email": "[email protected]",
"address": "123 Main St",
"city": "New York",
"region": "NY",
"postal": "10001",
"country": "US",
"vat_number": null
}
}Last updated: