Delete payment

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

Query parameters

NameDescription
guid globally unique identifier

Guid of the invoice

Required

paymentGuid globally unique identifier

The payment guid

Required

organizationId string

Request model

Version of the invoice
NameDescription
Timestamp string

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.

Returns

200 (ok) if the payment was deleted

NameDescription
TimeStamp string

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

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

Requests Formats

{
  "Timestamp": "00000000020A5EA8"
}

Response Formats

{
  "TimeStamp": "00000000020A5EA8"
}