Here's a short description how to register a sender and send an invoice via the API. Full documentation can be found here: www.storecove.com/docs

First create a legal entity in Storecove.

https://app.storecove.com/senders#!/

Send an invoice to Storecove.

Create a file invoice.json with the following content:

{

"legalEntityId":999999,

"routing":{

"eIdentifiers":[

{

"scheme":"NL:KVK",

"id":"60881119"

}

],

"emails":[

"no_peppol_so_email@example.com"

]

},

"invoice":{

"taxSystem":"tax_line_percentages",

"taxSubtotals":[

{

"taxableAmount":8.07,

"taxAmount":1.69,

"percentage":21,

"country":"NL"

}

],

"invoiceNumber":"202110001",

"issueDate":"2020-08-08",

"documentCurrencyCode":"EUR",

"accountingCustomerParty":{

"party":{

"companyName":"Storecove TEST",

"address":{

"street1":"Oude Enghweg 8",

"zip":"1217JC",

"city":"Amsterdam Hilversum",

"country":"NL"

}

},

"publicIdentifiers":[

{

"scheme":"NL:KVK",

"id":"60881119"

},

{

"scheme":"NL:VAT",

"id":"NL854101263B01"

}

]

},

"invoiceLines":[

{

"description":"InvoiceLine 1",

"amountExcludingVat":8.07,

"tax":{

"percentage":21,

"category":"standard",

"country":"NL"

}

}

],

"amountIncludingVat":9.76

}

}

curl -X POST "https://api.storecove.com/api/v2/invoice_submissions" -H "accept: application/json" -H "Authorization: Bearer <APIKEY>" -H "Content-Type: application/json" -d @invoice.json

Response:

{

"guid": "ad4dbc7f-be80-480f-92c2-5c93a75bbf9a"

}

Alternative way with the invoice data not via JSON, but via a Base64 encoded UBL or CII (or custom format):

{

"legalEntityId":999999,

"routing":{

"eIdentifiers":[

{

"scheme":"NL:KVK",

"id":"60881119"

}

],

"emails":[

"no_peppol_so_email@example.com"

]

},

"invoiceData":{

"conversionStrategy": "ubl",

"document": "PEludm9pY2U+PC9JbnZvaWNlPg=="

}

}


❷ Preflight:

Create a file preflight.json with the following content:

{

"publicIdentifiers":[

{

"scheme":"NL:KVK",

"id":"60881119"

}

]

}

curl -X POST "https://api.storecove.com/api/v2/invoice_submissions/preflight" -H "accept: application/json" -H "Authorization: Bearer <APIKEY>" -H "Content-Type: application/json" -d @preflight.json

Response:

{"code":"ok"}

Did this answer your question?