billing_info_validation_rules

Create a billing info validation rule

Changed on

Create a billing info validation rule

post/billing_info_validation_rules

Request

  • Base URL
    https://{your_organization_slug}.commercelayer.io/api
  • URL
    https://{your_organization_slug}.commercelayer.io/api/billing_info_validation_rules
  • Auth
    HTTP bearer

Request body

Example request

{
  "data": {
    "attributes": {
      "reference": "ANY-EXTERNAL-REFEFERNCE",
      "reference_origin": "ANY-EXTERNAL-REFEFERNCE-ORIGIN",
      "metadata": {
        "foo": "bar"
      }
    },
    "relationships": {
      "market": {
        "data": {
          "id": "XAyRWNUzyN"
        }
      }
    }
  }
}

Response

The created billing info validation rule object

Changes

    • breaking

      added the new required request property ///

    • breaking

      request property / was restricted to a list of enum values

    • warning

      removed the request property ///

    • warning

      removed the request property ///

    • info

      the request property default value billing_info_validation_rules was removed

    • info

      added the new billing_info_validation_rules enum value to the request property /

    • info

      added the media type application/vnd.api+json for the response with the status