Takes a card off file.
DELETE
/v1/payment-methods/{id}
const url = 'https://courierapi.itdlogisoft.co.uk/v1/payment-methods/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = {method: 'DELETE', headers: {Authorization: 'Basic <credentials>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://courierapi.itdlogisoft.co.uk/v1/payment-methods/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \ --header 'Authorization: Basic <credentials>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string format: uuid
Responses
Section titled “Responses”No Content
Not Found
Media typeapplication/json
The shape of every refusal from this API.
string ApiError.Code is stable and machine-readable; string ApiError.Message is for a human reading a log and may change without notice. Integrators are told to branch on the code.
object
code
required
string
message
required
string
Example generated
{ "code": "example", "message": "example"}