Sample CreateCombinedInvoice
Request
In this example, a Sepa Direct Debit is performed, combined with the CreateCombinedInvoice action of CreditManagement.
The requests consists of Sepadirectdebit parameters (for an explanation, see the Sepadirectdebit service section) and the CreateInvoice parameters.
Example Request
{
"AmountDebit": 10.00,
"Currency": "EUR",
"Invoice": "testinvoice1337",
"Services": {
"ServiceList": [
{
"Name": "SepaDirectDebit",
"Action": "Pay",
"Parameters": [
{
"Name": "CollectDate",
"Value": "2017-10-01"
},
{
"Name": "customeraccountname",
"Value": "John Smith"
},
{
"Name": "CustomerIBAN",
"Value": "NL13TEST0123456789"
},
{
"Name": "customerbic",
"Value": "TESTNL2A"
}
]
},
{
"Name": "CreditManagement3",
"Action": "CreateCombinedInvoice",
"Parameters": [
{
"Name": "InvoiceAmount",
"Value": "10.00"
},
{
"Name": "InvoiceDate",
"Value": "2017-09-15"
},
{
"Name": "DueDate",
"Value": "2017-10-12"
},
{
"Name": "SchemeKey",
"Value": "xxxxx"
},
{
"Name": "Code",
"GroupType": "Debtor",
"GroupID": "",
"Value": "JohnSmith9"
},
{
"Name": "Culture",
"GroupType": "Person",
"GroupID": "",
"Value": "nl-NL"
},
{
"Name": "LastName",
"GroupType": "Person",
"GroupID": "",
"Value": "Smith"
},
{
"Name": "Email",
"GroupType": "Email",
"GroupID": "",
"Value": "[email protected]"
}
]
}
]
}
}
Response
A response follows, notifying you of the pending status of the Sepa Direct Debit transaction and providing you a related invoice key.
Example response
{
"Key": "D44521B7E4B84EDBBC37D9168E8Bxxxx",
"Status": {
"Code": {
"Code": 791,
"Description": "Pending processing"
},
"SubCode": {
"Code": "C620",
"Description": "Awaiting transfer to bank."
},
"DateTime": "2017-09-15T13:48:26"
},
"RequiredAction": null,
"Services": [
{
"Name": "CreditManagement3",
"Action": null,
"Parameters": [
{
"Name": "InvoiceKey",
"Value": "ADD2EC4CC5824F669D317F1D7C4Axxxx"
},
{
"Name": "DebtorGuid",
"Value": "xxxxxxxxxxxxxxxxxxxx"
},
{
"Name": "InvoicePayLink",
"Value": "https://testcheckout.buckaroo.nl/html/?brq_paydirect_inv=xxxxxxxxxx"
}
]
},
{
"Name": "SepaDirectDebit",
"Action": null,
"Parameters": [
{
"Name": "MandateReference",
"Value": "001D44521B7E4B84EDBBC37D9168E8Bxxxx"
},
{
"Name": "MandateDate",
"Value": "2017-09-15"
},
{
"Name": "CustomerIBAN",
"Value": "NL13TEST0123456789"
},
{
"Name": "CustomerBIC",
"Value": "TESTNL2A"
},
{
"Name": "CollectDate",
"Value": "2017-10-02"
},
{
"Name": "DirectDebitType",
"Value": "OneOff"
}
]
}
],
"CustomParameters": null,
"AdditionalParameters": null,
"RequestErrors": null,
"Invoice": "testinvoice1337",
"ServiceCode": "SepaDirectDebit",
"IsTest": true,
"Currency": "EUR",
"AmountDebit": 10,
"TransactionType": "C004",
"MutationType": 1,
"RelatedTransactions": null,
"ConsumerMessage": {
"MustRead": true,
"CultureName": null,
"Title": "Your SEPA Direct Debit has been scheduled.",
"PlainText": "We have processed your request. The SEPA Direct Debit is scheduled to be collected from you bank account on Monday, October 2, 2017. It will be done using the mandate reference 001D44521B7E4B84EDBBC37D9168E8B3304.",
"HtmlText": "We have processed your request. The SEPA Direct Debit is scheduled to be collected from you bank account on Monday, October 2, 2017. It will be done using the mandate reference <b>001D44521B7E4B84EDBBC37D9168E8B3304<\/b>."
},
"Order": null,
"IssuingCountry": null,
"StartRecurrent": false,
"Recurring": false,
"CustomerName": "John Smith",
"PayerHash": null,
"PaymentKey": "5FCE6E3ACA2249CF9F61A8B316D0xxxx"
}
Push
Example Push
{
"Key": "D44521B7E4B84EDBBC37D9168E8Bxxxx",
"Status": {
"Code": {
"Code": 791,
"Description": "Pending processing"
},
"SubCode": {
"Code": "C620",
"Description": "Awaiting transfer to bank."
},
"DateTime": "2017-09-15T13:48:26"
},
"RequiredAction": null,
"Services": [
{
"Name": "CreditManagement3",
"Action": null,
"Parameters": [
{
"Name": "InvoiceKey",
"Value": "ADD2EC4CC5824F669D317F1D7C4Axxxx"
},
{
"Name": "DebtorGuid",
"Value": "xxxxxxxxxxxxxxxxxxxx"
},
{
"Name": "InvoicePayLink",
"Value": "https://testcheckout.buckaroo.nl/html/?brq_paydirect_inv=xxxxxxxxxx"
}
]
},
{
"Name": "SepaDirectDebit",
"Action": null,
"Parameters": [
{
"Name": "MandateReference",
"Value": "001D44521B7E4B84EDBBC37D9168E8Bxxxx"
},
{
"Name": "MandateDate",
"Value": "2017-09-15"
},
{
"Name": "CustomerIBAN",
"Value": "NL13TEST0123456789"
},
{
"Name": "CustomerBIC",
"Value": "TESTNL2A"
},
{
"Name": "CollectDate",
"Value": "2017-10-02"
},
{
"Name": "DirectDebitType",
"Value": "OneOff"
}
]
}
],
"CustomParameters": null,
"AdditionalParameters": null,
"RequestErrors": null,
"Invoice": "testinvoice1337",
"ServiceCode": "SepaDirectDebit",
"IsTest": true,
"Currency": "EUR",
"AmountDebit": 10,
"TransactionType": "C004",
"MutationType": 1,
"RelatedTransactions": null,
"ConsumerMessage": {
"MustRead": true,
"CultureName": null,
"Title": "Your SEPA Direct Debit has been scheduled.",
"PlainText": "We have processed your request. The SEPA Direct Debit is scheduled to be collected from you bank account on Monday, October 2, 2017. It will be done using the mandate reference 001D44521B7E4B84EDBBC37D9168E8B3304.",
"HtmlText": "We have processed your request. The SEPA Direct Debit is scheduled to be collected from you bank account on Monday, October 2, 2017. It will be done using the mandate reference <b>001D44521B7E4B84EDBBC37D9168E8B3304<\/b>."
},
"Order": null,
"IssuingCountry": null,
"StartRecurrent": false,
"Recurring": false,
"CustomerName": "John Smith",
"PayerHash": null,
"PaymentKey": "5FCE6E3ACA2249CF9F61A8B316D0xxxx"
}
Updated 4 months ago