Disable payment method sync between merchants
/payment_methods/copy/disableRemoves the persistent bidirectional sync established by POST /payment_methods/copy with continuous_sync set to true, for the given customer pair only. This operation is idempotent: when both customers exist, disabling a pair that is not currently synced returns a successful no-op response. If either the source or the destination customer does not exist, the response is 404.
Headers
AuthorizationstringRequiredidempotency-keystringA unique key, such as a UUID, that makes a POST or DELETE request safe to retry. Pay.com keeps each key for 24 hours, separately for each workspace.
- A retry with the same key, endpoint and body gets the first request's stored status and body, without running the request again.
- If the first request is still being processed, a retry gets 409
idempotency_error(request_in_progress). - The same key on another endpoint, or with another body, gets 400
idempotency_error(invalid_parameters). - GET, PUT and PATCH requests ignore the key.
The response repeats the key in its Idempotency-Key header.
Parameters
source_merchant_idstringRequiredUnique identifier of the merchant that the payment methods were synced from. Must belong to the same company as the current merchant.
customer_reference_idstringRequiredYour unique identifier for the customer under the destination merchant.
source_customer_reference_idstringYour unique identifier for the customer under the source merchant. Defaults to customer_reference_id when omitted.
Returns
Returns the destination customer that the sync was disabled for.
consumer_idstringUnique identifier of the destination customer that the sync was disabled for.
customer_reference_idstringYour unique identifier for the destination customer.
Errors
400401invalid_key, invalid_token, legacy_keys_ended, legacy_keys_off or permission_denied).403resource_not_allowed, key_disabled, network_not_allowed, pci_required or merchant_required), or this resource isn't enabled for your account (permission_denied). code says why.404409idempotency-key is still being processed (request_in_progress). Wait, then retry with the same key.500503Retry-After, or after a few seconds when there's none.