v1
latestOpenAPI 3.0.02026-07-24161215397.4 KBPayment Details
Add new payment details for user
Add payment details object. When recording payment details for a company, said company must have at least one billing person in order for the card to be recorded.
Required scopes: flex.billing.paymentDetails.create
post/api/v2/organizations/{orgSlug}/payment-details
Path parameters
orgSlugstring required
organization slug
Request body
Example request
{
"data": "tok_12EXMPLE34",
"isPersonal": true,
"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"
}