Billing
Update a billing profile
Update a billing profile by id.
The apps field cannot be updated directly, if an app change is desired a new profile should be created.
put/api/v1/billing/profiles/{id}
Path parameters
idstring required
Example:01G65Z755AFWAKHE12NY0CQ9FH
Request body
Example request
{
"metadata": {
"externalId": "019142cc-a016-796a-8113-1a942fecd26d"
},
"supplier": {
"addresses": [
{
"country": "US"
}
]
},
"workflow": {
"collection": {
"alignment": {
"recurringPeriod": {
"anchor": "2023-01-01T01:01:01.001Z"
}
},
"interval": "P1D"
},
"invoicing": {
"draftPeriod": "P1D",
"dueAfter": "P30D",
"defaultTaxConfig": {
"stripe": {
"code": "txcd_10000000"
},
"taxCodeId": "01G65Z755AFWAKHE12NY0CQ9FH"
}
}
}
}Response
The request has succeeded.
Example response
{
"id": "01G65Z755AFWAKHE12NY0CQ9FH",
"metadata": {
"externalId": "019142cc-a016-796a-8113-1a942fecd26d"
},
"createdAt": "2024-01-01T01:01:01.001Z",
"updatedAt": "2024-01-01T01:01:01.001Z",
"deletedAt": "2024-01-01T01:01:01.001Z",
"supplier": {
"addresses": [
{
"country": "US"
}
]
},
"workflow": {
"collection": {
"alignment": {
"recurringPeriod": {
"anchor": "2023-01-01T01:01:01.001Z"
}
},
"interval": "P1D"
},
"invoicing": {
"draftPeriod": "P1D",
"dueAfter": "P30D",
"defaultTaxConfig": {
"stripe": {
"code": "txcd_10000000"
},
"taxCodeId": "01G65Z755AFWAKHE12NY0CQ9FH"
}
}
},
"apps": {
"tax": {
"id": "01G65Z755AFWAKHE12NY0CQ9FH",
"type": "stripe",
"name": "Stripe",
"status": "ready",
"listing": {
"type": "stripe",
"name": "Stripe",
"description": "Stripe integration allows you to collect payments with Stripe.",
"capabilities": [
{
"type": "calculateTax",
"key": "stripe_calculate_tax",
"name": "Calculate Tax",
"description": "Stripe Tax calculates tax portion of the invoices."
},
{
"type": "invoiceCustomers",
"key": "stripe_invoice_customers",
"name": "Invoice Customers",
"description": "Stripe invoices customers with due amount."
},
{
"type": "collectPayments",
"key": "stripe_collect_payments",
"name": "Collect Payments",
"description": "Stripe payments collects outstanding revenue with Stripe customer's default payment method."
}
],
"installMethods": [
"with_oauth2",
"with_api_key"
]
},
"createdAt": "2024-01-01T01:01:01.001Z",
"updatedAt": "2024-01-01T01:01:01.001Z",
"stripeAccountId": "acct_123456789",
"livemode": true,
"maskedAPIKey": "sk_live_************abc"
},
"invoicing": {
"id": "01G65Z755AFWAKHE12NY0CQ9FH",
"type": "stripe",
"name": "Stripe",
"status": "ready",
"listing": {
"type": "stripe",
"name": "Stripe",
"description": "Stripe integration allows you to collect payments with Stripe.",
"capabilities": [
{
"type": "calculateTax",
"key": "stripe_calculate_tax",
"name": "Calculate Tax",
"description": "Stripe Tax calculates tax portion of the invoices."
},
{
"type": "invoiceCustomers",
"key": "stripe_invoice_customers",
"name": "Invoice Customers",
"description": "Stripe invoices customers with due amount."
},
{
"type": "collectPayments",
"key": "stripe_collect_payments",
"name": "Collect Payments",
"description": "Stripe payments collects outstanding revenue with Stripe customer's default payment method."
}
],
"installMethods": [
"with_oauth2",
"with_api_key"
]
},
"createdAt": "2024-01-01T01:01:01.001Z",
"updatedAt": "2024-01-01T01:01:01.001Z",
"stripeAccountId": "acct_123456789",
"livemode": true,
"maskedAPIKey": "sk_live_************abc"
},
"payment": {
"id": "01G65Z755AFWAKHE12NY0CQ9FH",
"type": "stripe",
"name": "Stripe",
"status": "ready",
"listing": {
"type": "stripe",
"name": "Stripe",
"description": "Stripe integration allows you to collect payments with Stripe.",
"capabilities": [
{
"type": "calculateTax",
"key": "stripe_calculate_tax",
"name": "Calculate Tax",
"description": "Stripe Tax calculates tax portion of the invoices."
},
{
"type": "invoiceCustomers",
"key": "stripe_invoice_customers",
"name": "Invoice Customers",
"description": "Stripe invoices customers with due amount."
},
{
"type": "collectPayments",
"key": "stripe_collect_payments",
"name": "Collect Payments",
"description": "Stripe payments collects outstanding revenue with Stripe customer's default payment method."
}
],
"installMethods": [
"with_oauth2",
"with_api_key"
]
},
"createdAt": "2024-01-01T01:01:01.001Z",
"updatedAt": "2024-01-01T01:01:01.001Z",
"stripeAccountId": "acct_123456789",
"livemode": true,
"maskedAPIKey": "sk_live_************abc"
}
}
}