Digitail API
Models
Model: Charge
1min
code examples { "id" 0, "amount" "", "amount refunded" "", "amount left" "", "made at" "", "type" 0, "card brand" "", "main sale id" 0, "main sale" {}, "main payment id" 0, "main payment" {}, "has single payment" false, "has multiple payment" false, "payments" \[ { "id" 0, "amount" "", "amount refunded" "", "amount left" "", "made at" "", "notes" "", "sale id" 0, "sale" { "id" 0, "clinic id" "", "customer id" "", "type" 0, "customer" { "id" 0, "name" "", "last name" "", "email" "", "phone" "", "address" "", "city" "", "street" "", "street number" "", "country" { "id" 0, "name" "", "iso code" "", "code" "", "language" { "id" 0, "name" "", "short name" "", "code" "" } }, "zip" "", "region" "", "timezone" "", "has app" false, "chatuid" "", "vat number" "", "discounts" \[ { "id" 0, "name" "", "description" "", "discount" 0, "discount type" 0, "apply on cogs" false, "discount products" 0, "discount type products" 0, "discount services" 0, "discount type services" 0, "enabled" false } ] }, "file" { "id" 0, "number" "", "status" 0, "vet id" 0, "clinic id" 0, "pet id" 0, "sale id" 0, "date" "", "reason" "", "template id" 0, "comments" "", "recommendations" "", "rabic tag number" "", "presumptive diagnosis" "", "diagnosis" "", "treatment" "" }, "counter sale" 0, "amount paid" "", "amount due" "", "edit state details" { "state" 0, "label" "", "can transit to" \[ { "label" "", "action" "", "state" 0 } ] }, "status" 0, "total" "", "global discount net" "", "global discount tax" "", "global discount gross" "", "consolidated" false, "created at" "", "updated at" "" }, "charge id" 0, "charge" { "" "" } } ], "charge receipt" {} }