Skip to navigation

Cancel a payment method setup

Cancels a setup still waiting on the buyer (requiresPaymentMethod or requiresAction), so its client secret can’t be used. Fails with status_conflict from any other status. {paymentMethodSetup} takes the setup’s pmset_ ID.

Authentication

AuthorizationBearer
API Key authentication using Bearer token

Path parameters

paymentMethodSetupstringRequired1-255 characters

The setup’s pmset_ ID.

Headers

Paid-BetaenumRequired

This endpoint is in the payments=v1 beta. Send this header to use it.

Allowed values:

Response

200
idstring
The setup's ID.
objectenum

The type of object. Always paymentMethodSetup.

Allowed values:
createdAtdatetime
When the object was created.
customerstring1-255 characters

The customer the card is being added to, always as its cus_ ID.

lastErrorobject or null

Set when status is failed.

livemodeboolean

true for an object on a live account, false on a test account.

metadatamap from strings to strings

String key-value pairs of your own, up to 500 characters per value. Always updatable.

nextActionobject

Set while status is requiresPaymentMethod or requiresAction, otherwise null.

paymentMethodstring or null1-255 characters

The pm_ payment method, set as soon as the setup succeeds: in that response when Paid confirmed it, otherwise by the paymentMethodSetup.succeeded event.

processorobject
The setup at the processor.
returnUrlstring or nullformat: "uri"
Where the buyer comes back to after a redirect.
statusenum

requiresPaymentMethod: waiting for the card form. requiresAction: waiting for the buyer (3-D Secure). processing: the card network is still answering; it settles on its own, usually within seconds, and can’t be canceled. succeeded, failed and canceled are final. Expect new values.

typeenum

What the setup collects: a card, or a usBankAccount the buyer links through the processor and authorises Paid to debit. Expect new values.

Allowed values:
updatedAtdatetime
When the object was last changed.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
429
Too Many Requests Error
500
Internal Server Error
503
Service Unavailable Error