Repository navigation
0.0.2
Welcome to Procuret .NET. This initial release provides the InstalmentLink struct. InstalmentLink facilitates the creation of customised links to the Procuret Instalment Product (PIP). PIP allows a customer Business to pay for a purchase over time, while you the Supplier are paid upfront.
When you create an InstalmentLink, you can ask Procuret to send an email to the customer Business on your behalf.
Methods
static async Task<String>.create(...)
Parameters
Int64supplierId - Your unique Supplier IDStringcustomerEmail - The email of the customer to whom a Procuret
payment invitation email should be sent.StringinvoiceIdentifier - Your invoice identifier. E.g."INV-001"DecimalinvoiceValue - The amount payable by the customerCommunicationOptioncommunication - Instance ofCommunicationOption
enumerationSessionsession - TheSessionto use when authenticating your request
Example Usage
await InstalmentLink.create(
supplierId: 589121125121,
customerEmail: "someone@somewhere.com",
invoiceIdentifier: "INV-001",
invoiceValue: Convert.ToDecimal("422.22"),
communciation: CommunicationOption.NotifyCustomer,
session: session // See Session create example above
)At present, InstalmentLink does not return anything useful. The String
returned at task completion contains the raw JSON response from Procuret API.
You can expect a more useful return value in future versions of Procuret .NET.