SmartGare
API referenceEndpoints

Pay a payout in cash from the till

A counter agent pays the exact payout in cash from their own open till, under one stable payment reference. The amount, currency and carrier are the payout's. The cash leaves that till's count and the payout reads paid; the same reference by the same agent answers the payment kept, anything else on a paid payout is refused. **Required permission:** `billing.payout:pay-cash`

POST/billing/v1/payouts/{id}/cash-payment

A counter agent pays the exact payout in cash from their own open till, under one stable payment reference. The amount, currency and carrier are the payout's. The cash leaves that till's count and the payout reads paid; the same reference by the same agent answers the payment kept, anything else on a paid payout is refused.

Required permission: billing.payout:pay-cash

AuthorizationBearer <token>

In: header

Path Parameters

id*string

Payout id

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

body*PayPayoutInCashRequest

Response Body

*/*

*/*

curl -X POST "https://example.com/billing/v1/payouts/string/cash-payment" \  -H "Content-Type: application/json" \  -d '{    "payment_reference": "string"  }'
{  "amount": 0,  "carried_count": 0,  "carried_total": 0,  "carrier_id": "string",  "charges": [    {      "amount": 0,      "bases": [        "string"      ],      "charge_id": "string",      "charge_revision": 0,      "closed_at": "2019-08-24T14:15:22Z",      "departure_at": "2019-08-24T14:15:22Z",      "departure_id": "string",      "vehicle_cycle_id": "string",      "vehicle_id": "string",      "vehicle_plate": "string"    }  ],  "charges_count": 0,  "charges_total": 0,  "corrections": [    {      "amount": 0,      "approved_at": "2019-08-24T14:15:22Z",      "approved_by": "string",      "charge_id": "string",      "correction_request_id": "string",      "reason": "string",      "vehicle_cycle_id": "string"    }  ],  "corrections_count": 0,  "corrections_total": 0,  "currency": "string",  "evidence_kind": "string",  "external_reference": "string",  "id": "string",  "late_refunds_count": 0,  "late_refunds_total": 0,  "late_sales_count": 0,  "late_sales_total": 0,  "paid_at": "2019-08-24T14:15:22Z",  "payment_method": "string",  "payment_recorded_at": "2019-08-24T14:15:22Z",  "payment_recorded_by": "string",  "payment_reference": "string",  "payment_register_id": "string",  "period_ends_at": "2019-08-24T14:15:22Z",  "period_id": "string",  "period_reference": "string",  "period_starts_at": "2019-08-24T14:15:22Z",  "produced_at": "2019-08-24T14:15:22Z",  "produced_by": "string",  "proofs_not_kept": [    "string"  ],  "refunds_count": 0,  "refunds_total": 0,  "sales_count": 0,  "sales_total": 0,  "statement_number": "string",  "status": "string"}