{"$id":"https://example.com/InvoiceMapped.json","$schema":"https://json-schema.org/draft/2020-12/schema","title":"Invoice Received","type":"object","properties":{"details":{"type":"object","properties":{"number":{"type":"string","description":"the invoice number","example":"000003092"},"serial":{"type":"string","description":"the invoice serial","example":"001"},"url":{"type":"string","description":"the invoice PDF url","example":"https://invoices.mony.com.br/pdf/000003092.pdf"},"access_key":{"type":"string","description":"the unique access key associated with the invoice","example":"35250508192116000343550010004070511924363830"},"issuer":{"type":"object","properties":{"tax_id":{"type":"string","description":"the issuer tax id","example":"123542344456"}}},"recipient":{"type":"object","properties":{"tax_id":{"type":"string","description":"the recipient tax id","example":"123542344456"}}}},"required":["action","access_key"]},"order":{"type":"object","properties":{"type":{"type":"string","enum":["transfer_order"],"description":"the type of the order that the invoice is related to","example":"transfer_order"},"number":{"type":"string","description":"the order number","example":"000003092"},"hub_destination":{"type":"string","description":"the destination hub id","example":"SAO001"},"hub_origin":{"type":"string","description":"the origin hub id","example":"SAO002"}}}},"required":["details","order"]}