Custom Fields

Delete Metadata

DELETE
/{resource_type}/{resource_id}/metadata.json

Deletes one or more metafields (and associated metadata) from the specified subscription or customer.

Authorization

BasicAuth
AuthorizationBasic <token>

The username is a Maxio Chargify API key. The password is x.

In: header

Path Parameters

resource_type*Resource Type

The resource type to which the metafields belong.

Value in

  • "subscriptions"
  • "customers"
resource_id*integer

The Advanced Billing id of the customer or the subscription for which the metadata applies

Query Parameters

name?string

Name of field to be removed.

names?array<string>

Names of fields to be removed. Use in query: names[]=field1&names[]=my-field&names[]=another-field.

Response Body

curl -X DELETE "https://example.com/subscriptions/0/metadata.json"
Empty