POST /v1/customers/{customerId}/billing-accounts
POST
/v1/customers/{customerId}/billing-accountsAuthorization
x-api-keyAPI key · headerrequiredor
AuthorizationBearer token · headerrequiredPath parameters
customerIdstringrequiredmin length 1
Query parameters
environmentstringAllowed:
sandboxproductionmerchantAccountIdstringmin length 1
Header parameters
Idempotency-KeystringRequired for production-safe retries on mutating routes. Reusing a key with a different request body returns 409.
min length 1
Request body
requiredapplication/jsonenvironmentstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullmerchantAccountIdstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullcustomerIdstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullinvoiceDeliveryModestringrequiredAllowed:
emailmanualapi_onlycollectionModestringrequiredAllowed:
manualautomaticautoCollectionEnabledbooleanrequiredbillingAccountIdstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullcustomerProfileIdstring | nullShow propertiesHide properties
Any of:
string
stringnull
nulldefaultPaymentMethodIdstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullrenewalTimingstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullnetTermsDaysnumber | nullShow propertiesHide properties
Any of:
number
numbernull
nulldunningCampaignIdstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullmetadataobject | nullShow propertiesHide properties
Any of:
object
objectnull
nullResponses
201
Success
dataobjectrequiredShow propertiesHide properties
billingAccountIdstringrequiredmin length 1
customerIdstringrequiredmin length 1
merchantAccountIdstringrequiredmin length 1
environmentstringrequiredAllowed:
sandboxproductioninvoiceDeliveryModestringrequiredAllowed:
emailmanualapi_onlycollectionModestringrequiredAllowed:
manualautomaticautoCollectionEnabledbooleanrequiredmetadataobjectrequiredcreatedAtstringrequiredmin length 1
customerProfileIdstring | nullShow propertiesHide properties
Any of:
string
stringnull
nulldefaultPaymentMethodIdstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullrenewalTimingstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullnetTermsDaysnumber | nullShow propertiesHide properties
Any of:
number
numbernull
nulldunningCampaignIdstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullarchivedAtstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullrequestIdstringrequiredmin length 1