DELETE v1/{organizationId}/invoices/{guid}/payments/{paymentGuid}

Delete a payment from an invoice. Only booked invoices can have payments.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
guid

Guid of the invoice

globally unique identifier

Required

paymentGuid

The payment guid

globally unique identifier

Required

organizationId

string

None.

Body Parameters

Version of the invoice

TimestampObject
NameDescriptionTypeAdditional information
Timestamp

Timestamp to validate against. If left empty, default to newest version. This is an optional safety measure, making it possible to ensure that changes are made to the latest version of the entity. The timestamp is generated on Dinero's server every time the entity is updated, and is returned as a part of CreatedResponse and UpdatedResponse. It's also available on the entity itself. If you get a timestamp outdated exception (error code 58), you will need to get the latest version of the enity and use its timestamp.

string

None.

Sample:
{
  "Timestamp": "00000000020A5EA8"
}

Response Information

Resource Description

200 (ok) if the payment was deleted

DeletedPaymentResponse
NameDescriptionType
TimeStamp

Timestamp of version of the invoice. To avoid concurrency issues.

string
Sample:
{
  "TimeStamp": "00000000020A5EA8"
}