Purchase Receipts Mutations

CreatePurchaseReceiptFrom

Creates a purchase receipt from one or multiple Purchase orders.

Parameters:

ParameterTypeDescription
inputPurchaseReceiptFromInput!Source documents IDs.

Example Query:

mutation CreatePurchaseReceiptFrom($input: PurchaseReceiptFromInput!) {
  CreatePurchaseReceiptFrom(input: $input) {
    id
    label
    status
    dated_at
  }
}

UpdatePurchaseReceipt

Updates an existing purchase receipt.

Parameters:

ParameterTypeDescription
idInt!ID of the purchase receipt.
inputPurchaseReceiptInput!Updated data.

DeletePurchaseReceipt / DeletePurchaseReceipts

Deletes one or multiple purchase receipts.


GeneratePurchaseReceiptsPdfs

Generates PDF documents for multiple purchase receipts.


Input Data Types

PurchaseReceiptInput

FieldTypeDescription
idIntID.
labelStringPurchase receipt number.
total_unitsFloatTotal units for the receipt.
statusPurchaseReceiptStatusStatus.
supplierSupplierInputSupplier data.
notesStringPublic notes.
external_referenceStringExternal reference.
line_items[LineItemPurchaseReceiptInput]Items list.
dated_atDateDocument date.
created_atDateTimeCreation time.
shipping_atDateExpected delivery date.
files[FileInput]Attachments.
custom_fields[EntityCustomFieldInput]Custom fields for this entity.

PurchaseReceiptFromInput

FieldTypeDescription
Purchase[Int]List of source purchase order IDs.

Enums

PurchaseReceiptStatus

ValueDescription
unpublishedDraft status (no impact).
pendingPublished and awaiting reception.
deliveredDocument confirmed and items received.
cancelledDocument voided.