v1
latestOpenAPI 3.0.02026-07-24161215397.4 KBPayment Details
Delete payment details by id
Remove the payment details object with id = {paymentDetailsId}. Removing a card associated with a company requires the user performing the operation to be a billing person.
Required scopes: flex.billing.paymentDetails.delete
delete/api/v2/organizations/{orgSlug}/payment-details/{paymentDetailsId}
Path parameters
paymentDetailsIdstring required
payment details id
orgSlugstring required
organization slug
Request body
Example request
{
"member": "603dfbc260f4054084125d38",
"company": "603dfbc260f4054084125d39"
}Response
Example response
{
"_id": "603dfbc260f4054084125d34",
"details": {
"id": "card_1NISlsEk95fg2DONATjFxjZ1",
"name": "Test Member",
"brand": "Visa",
"funding": "credit",
"expirationMonth": 2,
"expirationYear": 2042,
"country": "US",
"cvcCheck": "pass",
"last4": "4242"
},
"authorization": {
"authProvider": "seti_1NIX7tEk95fg2DONRZsfd8zM",
"status": "not_required"
},
"paymentCustomer": "cus_12EXMPLE34",
"paymentSource": "card_12EXMPLE34",
"createdAt": "2021-04-21T18:00:00.000Z",
"createdBy": "603dfbc260f4054084125d30"
}