How to create a billing info validation rule via API
To create a new billing info validation rule, send a POST request to the /api/billing_info_validation_rules endpoint, passing the resource arguments in the request body.
Request
POST https://yourdomain.commercelayer.io/api/billing_info_validation_rules
Arguments
Body Parameter
Type
Required
type
string
Required
attributes.reference
string
Optional
attributes.reference_origin
string
Optional
attributes.metadata
object
Optional
relationships.market
object
Required
Example
The following request creates a new billing info validation rule: