Charges
Create a Charge
Permissions needed: any of (CREATE_CHECKUPS, VIEW_COUNTER_SALE) Creates a new charge for a specific pet parent and clinic and returns it. surcharge is accepted only for DSP integrated saved card payments (when provider_data.payment_method_id is provided).
post/api/v1/charges
Query parameters
Additional info to include: mainSale,mainPayment,payments,chargeReceipt
Request body
Example request
{
"clinic_id": 1234,
"client_id": 234,
"sale_id": 234,
"amount": 100,
"type": 2,
"card_brand": "master_card",
"provider_data": {
"payment_method_id": "pm_123"
},
"date": "2020-01-01T00:00:00Z",
"surcharge": 0.35
}Response
Created