Ropo One™ Embed

Embed service’s API calls

To be able to use Ropo’s Embed service through REST, the following API calls are required at minimum:

Posting embed invoices to Ropo One

Invoicechevron-right

Other most used REST API calls with Embed service

  • Posting bypass payments for invoices which are in Ropo One

Paymentchevron-right
  • Get the invoice image from Ropo One. REST API call’s response returns the invoice image as PDF.

Get PDFchevron-right
  • Preview the invoice image before posting the invoice to Ropo One

Preview of invoicechevron-right
  • Post the invoice as a local print to Ropo One and send the invoice by yourself to the recipient. REST API call’s response returns the invoice image as PDF.

Local print of invoicechevron-right

Embed: Posting Embed invoice with minimum level information to Ropo One

Minimum required level information in dataset JSON of the invoice, for posting it to be unify invoice in Ropo One, are listed below:

Invoice

Invoice Data (dataset tag):

  • jobtype: Message type (e.g., 0 for invoice)

  • address: Address of the recipient

  • postcode: Customer’s postal code

  • company: B2B end customer’s name (if customer type = 1)

  • person: B2C end customer’s name (if customer type = 2)

  • city: Customer’s post office

  • customertype: Client type (1 = company, 2 = private person)

  • billdate: Date of invoice in the form of YYYY-MM-DD

  • paydate: Date of issue in the form of YYYY-MM-DD

Invoice Rows (payrow tag):

  • desc: Name of the product

  • count: Number of items

  • amount: Unit price (excl. tax)

  • taxpr: Value Added Tax (0-100)

Accountrow

  • accountid: Specifies the account code for the transaction

  • debit and credit: Indicate the amounts to be debited or credited

  • desc: Provides a description of the transaction

  • netamount: The net amount excluding VAT

  • vatamount: The VAT amount

  • taxpr: The VAT percentage

Example JSON


How to post the Embed invoice job to Ropo One

You need to know to which country and to which environment you are posting the reminder job. Ropo has country-specific environments for testing and production purposes.

Test environments

Prod environments

For each environment, your company’s Ropo One profile has its own cidand apicode.

When posting jobs to Ropo One, you should be using jobs API-call: Example Swagger link to Finnish environment: https://rc.ropo24.fi/swagger/#/jobs/JobAddJobActionarrow-up-right


Authorization

First, you need to do the authorization with cid and apicode which Ropo has given to your knowledge:

Fetch the token from the desired environment with your cid and apicode:

As a response, you will get the token:


Posting the job

Then use the token as authorization header when posting job to Ropo One:


Response

As a response to posting the job to Ropo One, Ropo One gives the information whether the job was accepted or rejected.

Last updated

Was this helpful?