POST v1/{organizationId}/vouchers/purchase

Saves a purchase voucher.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
organizationId

string

None.

Body Parameters

Model of the purchaser voucher to save.

CreatePurchaseVoucher
NameDescriptionTypeAdditional information
FileGuid

The guid of an uploaded file to connect to the purchase voucher, this will typically be an image of the voucher.

string

None.

Notes

User supplied notes on the purchase voucher

string

None.

VoucherDate

The date of the voucher's creation/issuing. This should be in the format yyyy-mm-dd e.g. 2015-12-02

string

Required

Sample:
{
  "FileGuid": "web0crmck5v0ndcx3313g6zn61tc7wgc",
  "Notes": "Bought flowers for decorating the office",
  "VoucherDate": "2015-09-16"
}

Response Information

Resource Description

200 (ok) if the voucher has been successfully saved.

PurchaseVoucher
NameDescriptionType
VoucherGuid

The id of the purchase voucher

globally unique identifier
Sample:
{
  "VoucherGuid": "0ad84ee6-d3cb-42ff-88d9-bafc69ffb3a6"
}