action sinao_app_documents_purchases_purchases_get { label: "Get a purchase" description: "Get an Purchase/Purchase object by Id" provider: sinao method: GET path: "/apps/{appId}/purchases/{id}" encoding: json input: { type: "object" properties: { id: { type: "integer" } } required: ["id"] additionalProperties: false } output: { properties: { account: { properties: { accounting_number: { type: "string" } description: { type: "string" } editable: { type: "boolean" } id: { type: "integer" } is_associate: { type: "boolean" } is_cashflow: { type: "boolean" } is_purchase: { type: "boolean" } is_sales: { type: "boolean" } is_various: { type: "boolean" } journalcode: { type: "string" } keywords: { type: "string" description: "keywords comma separated" } name: { type: "string" } need_charge: { type: "boolean" } need_employee: { type: "boolean" } need_invoice: { type: "boolean" } technical_name: { type: "string" } } } accounted_at: { type: "string" format: "date-time" description: "Date on which the accounting entries were generated" } amount: { type: "integer" description: "Amount without taxes in cents" } amount_net_foreign_currency: { type: "integer" description: "Amount without taxes in cents" } amount_tax: { type: "integer" description: "Amount of taxes in cents" } balance: { properties: { completed: { type: "boolean" } due: { type: "integer" description: "Initial balance total due" } meaning: { type: "string" enum: ["completed", "remaining", "overpaid"] } paid: { type: "integer" } remaining: { type: "integer" } } } billed_at: { type: "string" format: "date-time" description: "Date of invoice" } comment: { type: "string" description: "free field" } completed_at: { type: "string" format: "date-time" description: "Date on which the account, supplier, amount and billed_at fields were completed" } foreign_currency: { type: "string" description: "Amount of taxes in cents" } id: { type: "integer" } is_late: { type: "boolean" description: "The payment deadline has passed and full payment has not been received" } md5: { type: "string" description: "Md5 hash of the initial file sent" } paid_at: { type: "string" format: "date-time" description: "Date on which the invoice was fully paid" } payment_account_number: { type: "string" description: "Payment Account number" } payment_deadline_at: { type: "string" format: "date-time" description: "Payment deadline" } payment_iban: { type: "string" description: "Payment IBAN" } payment_routing_number: { type: "string" description: "Payment Routing number" } payment_swift: { type: "string" description: "Payment SWIFT" } picture: { type: "string" description: "Purchase picture" } status: { type: "string" enum: ["new", "completed", "paid"] } supplier: { type: "object" } supplier_name: { type: "string" } tags: { type: "array" items: { type: "string" } } title: { type: "string" description: "Name visible on the accounting entries of the purchase" } vat_detail: { type: "object" description: "VAT breakdown" } vat_repayment: { type: "string" description: "In France, depending on the type of purchase (product or service), VAT is not payable at the same time. VAT on products is due on the date of the invoice, while VAT on services is due on the date of payment thereof" enum: ["payment", "billing"] } will_be_late_at: { type: "string" format: "date-time" description: "Date the payment will be late. Is `false` if payment has been made" } } } }