getTerms
getTerms is used for fetching our payment terms.
An example can be found here Get terms example
Request
Data
Property | Required | Type | Description |
---|---|---|---|
PaymentData | true | object | Payment data. |
Cart | true | object | Cart data. |
PaymentData
Property | Required | Type | Description |
---|---|---|---|
method | true | string | Payment method. Allowed values: 1 = Invoice, 4 = Part Payment, 8 = Card |
paymentplanid | false | int | Paymentplanid is only required if method is 4 (Part payment). |
Cart
Property | Required | Type | Description |
---|---|---|---|
total.withtax | true | cent | Total payment including tax in 1/100 of currency (i.e. öre if currency is SEK, cent if currency is EUR). Note: Total Payment with Tax must be equal to Total Payment Excluding Tax + Total Tax + Rounding. This is a double check to make sure no rounding errors are present and payment always will be correct. |
Function
Property | Required | Type | Description |
---|---|---|---|
function | true | string | The function name to be used, for this page it’s getTerms |
Response
Property | Type | Description |
---|---|---|
terms | string | HTML code with your terms |