Installments payments

Cancel installments payment

Cancel an existing installments payment.

This endpoint generates the Authorization created event.

post/payments/v1/payments/installments/cancel

Request

  • Base URL
    https://sandbox.pismolabs.io
  • URL
    https://sandbox.pismolabs.io/payments/v1/payments/installments/cancel
  • Auth
    HTTP bearer

Headers

x-tenantstring required
Example:TN-c0e4c660-9059-404c-ab22-761aa431766c

Unique Org ID.

x-account-idstring

Optional account ID.

x-skip-timelinestring
Example:true

If set to true, this will prevent the generation of timeline events in the customer timeline.

Request body

tracking_idstring

Unique tracking ID of the installments operation. If you don't provide one, the Pismo platform generates it randomly.

original_tracking_idstring

Unique tracking ID of the original installments operation. You have to provide either original_tracking_id or original_authorization_id to execute this request.

original_authorization_idinteger

Authorization ID of the original installments operation. You have to provide either original_authorization_id or original_tracking_id to execute this request.

account_idinteger required

Pismo account ID.

amountnumber float

Total amount to be cancelled.

metadataMetadata

This optional user-defined key-value object field can be used with external operations to provide additional context or supplementary custom information for the operation.

The Pismo platform does not perform any validation or processing on this field but passes this object to the acquirer in transactions involving calls to the acquirer and sends it in the events related to the stream of data produced at the end of the request.

Note: This field must not be used to send Personally Identifiable Information (PII), Payment Card Industry (PCI) data, or any sensitive/regulated information. Metadata fields are intended for operational, non-sensitive data only. For sensitive data, use the specific parameters designed for that purpose. For more information, refer to Get started with Pismo APIs.

Example request

{
  "tracking_id": "be68db6e-8da0-4761-8632-6a51857bd123",
  "original_tracking_id": "be68db6e-8da0-4761-8632-6a51857bd123",
  "original_authorization_id": 15301234,
  "account_id": 101,
  "amount": 12.13,
  "metadata": {
    "any-key": "any-value"
  }
}

Response

Created

authorization_idinteger

Generated authorization ID.

event_datestring date-time

Date and time of the authorization, in UTC-0 (RFC3339) format.

tracking_idstring

Unique 36-character identifier for the installments payment. If you didn't provide an identifier, then the Pismo platform automatically generates and includes one in the response.

Example response

{
  "authorization_id": 15301234,
  "event_date": "2020-01-02T15:14:00.218Z",
  "tracking_id": "82766158-514c-42f0-87e2-1bb3250c6dee"
}

Changes

No recorded changes to this operation across all 1 revision of this API.