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

Delete invoice. The invoice cannot be deleted if booked.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
guid

Unique identifier for the invoice

globally unique identifier

Required

organizationId

string

None.

Body Parameters

optional timestamp to verify version before deletion

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

Returns 200 (OK) if the invoice is deleted successfully

Ok
Sample:

Sample not available.