POST Sync/OnInvoicesCreated
This method is used to "Populate" an invoice after it has been reserved. One method of determining if an invoice has been populated is to check table Invoice.OriginalInvoiceData JSON contents and if it is not NULL, then it has been populated.
Request Information
URI Parameters
None.
Body Parameters
A list of InvoiceIdentifier objects (SubscriberID, LocationTaxIdentificationNumber, InvoiceNumber
OnInvoicesCreatedEventName | Description | Type | Additional information |
---|---|---|---|
InvoiceIdentifiers | Collection of InvoiceIdentifier |
None. |
Request Formats
application/json, text/json
Sample:
{ "InvoiceIdentifiers": [ { "SubscriberId": 1, "OrderId": 1, "TaxIdentificationNumber": "sample string 2", "InvoiceNumber": 1 }, { "SubscriberId": 1, "OrderId": 1, "TaxIdentificationNumber": "sample string 2", "InvoiceNumber": 1 } ] }
application/xml, text/xml
Sample:
<OnInvoicesCreatedEvent xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mindbody.Contract.Marketplace.Models.Events.Invoices"> <InvoiceIdentifiers xmlns:d2p1="http://schemas.datacontract.org/2004/07/Mindbody.Contract.Marketplace.Models.Invoices"> <d2p1:InvoiceIdentifier> <d2p1:InvoiceNumber>1</d2p1:InvoiceNumber> <d2p1:OrderId>1</d2p1:OrderId> <d2p1:SubscriberId>1</d2p1:SubscriberId> <d2p1:TaxIdentificationNumber>sample string 2</d2p1:TaxIdentificationNumber> </d2p1:InvoiceIdentifier> <d2p1:InvoiceIdentifier> <d2p1:InvoiceNumber>1</d2p1:InvoiceNumber> <d2p1:OrderId>1</d2p1:OrderId> <d2p1:SubscriberId>1</d2p1:SubscriberId> <d2p1:TaxIdentificationNumber>sample string 2</d2p1:TaxIdentificationNumber> </d2p1:InvoiceIdentifier> </InvoiceIdentifiers> </OnInvoicesCreatedEvent>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
None.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.