delete deprecatedhttps://api-sandbox.pismolabs.io/corporate/v1/earmarks/
Cancels a previously set earmark, releasing the earmarked funds, and preventing the earmark from executing at its scheduled expiration date/time.
See Data and reporting for more information about events and setting up event notifications.
For more information about earmark operations, see the Earmarks launch reference guide.
This endpoint produces the follow events:
- Authorization created
- Account balance changed
- Account balance changed (Availables)
- Transaction created
- Earmark created, updated, or canceled with
CANCELED
action.
NOTES:
- This endpoint requires an account-specific access token. Getting an account token requires you to call the Get OpenID access token endpoint with an external account ID. Tokens can expire quickly, which can result in an unauthorized message.
- The events Authorization created and Transaction created include "corporate_metadata" in the "metadata" and "details" fields respectively. The "corporate_metadata" contains the following fields:
debit_external_account_id
: The debited account in the creation operation.earmark_id
: The created earmark id.
- The event Earmark created, updated, or canceled only contains the
internal_operation
field, which refers to the operation performed (earmark cancellation). It does not contain the complete list of all actions performed on the earmark.