POST api/CRM/ProcessPurchaseOrder

Adds new purchase order (i.e. adds a Product entry in WebCRM, creates one regular and one contract invoice in Billecta, created agreement PDF and sends email with agreement.)

Request Information

URI Parameters

None.

Body Parameters

PurchaseCompletionOrder
NameDescriptionTypeAdditional information
AutogiroDetails

Debtor Autogiro details

AutogiroDetails

None.

PersonNumber

Billecta's Person number of Payer

string

None.

PayerPersonNumber

Billecta's Person number of Payer

string

None.

LeadId

globally unique identifier

None.

PaymentDuration

PaymentDuration

None.

InvoiceType

InvoiceTypes

None.

Request Formats

application/json, text/json

Sample:
{
  "AutogiroDetails": {
    "$id": "2",
    "AccountNo": "sample string 1",
    "ClearingNo": "sample string 2",
    "PaymentServiceSupplier": "sample string 3"
  },
  "PersonNumber": "sample string 1",
  "PayerPersonNumber": "sample string 2",
  "LeadId": "3b33e4f4-097f-49ed-a8bc-d8bb06d9a430",
  "PaymentDuration": 1,
  "InvoiceType": 1
}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Response
NameDescriptionTypeAdditional information
Result

boolean

None.

Message

string

None.

Errors

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "Result": true,
  "Message": "sample string 2",
  "Errors": {
    "$id": "2"
  }
}