Deletes a Draft Disbursement
DELETE/disbursements/:id
Deletes a Disbursement in Draft or Ready Status by id
.
Request
Path Parameters
ID of the Disbursement
.
Responses
- 200
- 400
- 401
- 403
- 404
Deleted Disbursement details
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
The unique identifier of the disbursement
The name of the disbursement
The custom template used to send invitations to receivers. The default
message isn't returned. In the message's content it's possible to add the following template variables: {{.OrganizationName}} which is the Organization Name configured and {{.RegistrationLink}} which is the link generated by SDP to send to the receiver (in case this is not present in the message, it's automatically appended at the end).
Possible values: [EMAIL
, PHONE_NUMBER
, EMAIL_AND_WALLET_ADDRESS
, PHONE_NUMBER_AND_WALLET_ADDRESS
]
wallet
object
asset
object
The Stellar asset object
Asset code
Asset issuer address
Possible values: [DRAFT
, READY
, STARTED
, PAUSED
, COMPLETED
]
Possible values: [DATE_OF_BIRTH
, YEAR_MONTH
, PIN
, NATIONAL_ID_NUMBER
]
status_history
object[]
Possible values: [DRAFT
, READY
, STARTED
, PAUSED
, COMPLETED
]
Total number of payments
Total number of successful payments
Total number of failed payments
Total number of remaining payments
The total amount disbursed so far
The total amount to be disbursed
The average amount per payment
{
"id": "619da857-8725-4c58-933d-c120a458e0f5",
"name": "Disbursement Name",
"receiver_registration_message_template": "You have a payment waiting for you from {{.OrganizationName}}. Click {{.RegistrationLink}} to register.",
"registration_contact_type": "EMAIL",
"wallet": {
"id": "5ada9ed5-455a-4782-a0ee-160767e0deb1",
"name": "Vibrant Assist",
"homepage": "https://vibrantapp.com",
"sep_10_client_domain": "api-dev.vibrantapp.com",
"deep_link_schema": "https://vibrantapp.com/sdp-dev",
"created_at": "2023-07-31T20:50:45.648Z",
"updated_at": "2023-07-31T20:50:45.648Z"
},
"asset": {
"id": "ffaec4b3-46b0-4db4-a4c4-6c3508057705",
"code": "USDC",
"issuer": "GBBD47IF6LWK7P7MDEVSCWR7DPUWV3NY3DTQEVFL4NAT4AQH3ZLLFLA5",
"created_at": "2023-02-03T10:45:51Z",
"updated_at": "2023-02-03T10:45:51Z",
"deleted_at": "2023-06-03T10:55:51Z"
},
"status": "DRAFT",
"verification_field": "DATE_OF_BIRTH",
"status_history": [
{
"user_id": "3f351b9e-ed0f-40fa-a314-14757b42dab1",
"status": "DRAFT",
"timestamp": "2023-02-03T10:45:51Z"
}
],
"file_name": "disbursement-feb-03-2023.csv",
"created_at": "2023-02-03T10:45:51Z",
"updated_at": "2023-02-03T10:45:51Z",
"total_payments": 10,
"total_payments_sent": 8,
"total_payments_failed": 1,
"total_payments_remaining": 1,
"amount_disbursed": "800.00",
"total_amount": "1000.00",
"average_amount": "100.00"
}
Bad Request, Cannot delete a disbursement that has started
- */*
- Schema
- Example (from schema)
Schema
Details about the error
extras
object
{
"error": "Invalid input",
"extras": {
"field_foo": "field_foo is required",
"field_bar": "field_bar needs to be an integer"
}
}
Unauthorized
- */*
- application/json
- Schema
- Example (from schema)
Schema
extras
object
{
"error": "Not authorized",
"extras": {
"status": 401,
"message": "Not authorized"
}
}
- Schema
- Example (from schema)
- Example
Schema
any
{
"error": "Not authorized",
"extras": {
"status": 401,
"message": "Not authorized"
}
}
{
"error": "Not authorized",
"extras": {
"status": 401,
"message": "Not authorized"
}
}
Forbidden
- */*
- application/json
- Schema
- Example (from schema)
Schema
{
"error": "Forbidden"
}
- Schema
- Example (from schema)
- Example
Schema
any
{
"error": "Forbidden"
}
{
"error": "Forbidden"
}
Not Found
- */*
- application/json
- Schema
- Example (from schema)
Schema
extras
object
{
"error": "string",
"extras": {
"status": 0,
"message": "string"
}
}
- Schema
- Example (from schema)
- Example
Schema
any
{
"error": "Not found",
"extras": {
"status": 404,
"message": "Resource not found"
}
}
{
"error": "Not found",
"extras": {
"status": 404,
"message": "Resource not found"
}
}