Disbursements
Endpoints related to disbursements. A disbursement is a group of payments sent to multiple individuals at once. An SDP user with the appropriate role triggers a new disbursement through the SDP dashboard by uploading a list of receivers and amounts. When the receiver has linked their wallet to the SDP, the payment automatically begins. SDP users can track their disbursements in real-time through the SDP dashboard. Each disbursement must have a unique name defined by the organization.
📄️ List All Disbursements
Fetches all disbursements the organization has created. This endpoint supports pagination. The response includes basic aggregations on payments within the disbursement.
📄️ Create Disbursement
Creates a new disbursement in `draft ` state with basic details. Important: a disbursement is not triggered until the organization adds receivers through the Upload Disbursement Instructions endpoint and the status changes from `draft ` to `ready `.
📄️ Retrieve a Disbursement
Fetches information on a specific disbursement by `id `.
📄️ List All Disbursement Receivers
Fetches a list of receivers within a specific disbursement using the disbursement `id `. This endpoint supports pagination.
📄️ Download Disbursement Instructions
Allows an SDP user to download the raw CSV file that was uploaded when creating the disbursement. This will only return results after instructions have been attached to a draft disbursement.
📄️ Upload Disbursement Instructions
Adds a file containing a list of receivers to a `draft ` disbursement. This step is required before a disbursement can begin. The file must be a CSV and has a standard format that can be found at `dev/sample/sample-disbursement.csv `. The operation is idempotent, guaranteed by deleting and recreating the disbursement attributes when this endpoint is called.
📄️ Update a Disbursement Status
Updates the status of a disbursement according to the state machine. The disbursement must move from `draft ` to `ready ` in order to start the disbursement and trigger payments. Payments will start as soon as this endpoint is hit. A disbursement can also be moved into `paused ` state by an SDP user to prevent further payments from going out and restarted when they are ready.