SET Merchant API · Metadata
Change an object's metadata
POST/v1/metadata/{id}
Sets the keys you send, removes those sent as "" or null, and leaves the rest. metadata: null clears them all. At most 20 keys on an object.
Path parameters
idstringrequired- The object's id.
Body
metadataobject | nullrequired- The changes.
Notes
- Metadata is for your own ids, never personal data: a value that looks like an email, has a space (as a name does), or has a run of more than 8 digits (as an account, card, phone or tax number does) is refused.
Errors
400 body_invalid400 metadata_invalid400 metadata_personal_data404 object_unknown401 api_key_required401 api_key_invalid401 api_key_wrong_mode403 scope_missing429 rate_limited