LogoLogo
  • Qvalia Developer Tools
    • API
    • JSON/XML or JSON to XML
    • Attachments to messages
  • Quick Start
  • API Documentation
    • API's
      • Transaction API
        • Invoice APIs
        • CreditNote APIs
        • Order APIs
        • OrderResponse APIs
        • OrderChange APIs
        • OrderCancellation APIs
        • Catalogue APIs
        • DespatchAdvice APIs
      • Enrichment API
        • Enrichment API
      • Partner API
        • Partner API
      • Account API
        • Account Functions/Invoice Functions
  • Sample Data
    • API Sample Data
      • Invoice
      • CreditNote
      • Order
      • OrderResponse
      • OrderChange
      • OrderCancellation
      • Catalogue
      • DespatchAdvice
  • SFTP Integration
    • SFTP Integration
  • VAN Operator
    • Operators
  • Qvalia
    • Home
Powered by GitBook
On this page

Was this helpful?

Export as PDF
  1. API Documentation
  2. API's
  3. Partner API

Partner API

PreviousPartner APINextAccount API

Was this helpful?

Get Account

get

An API to fetch (GET) a Qvalia account under your Partner account.

Authorizations
Path parameters
partnerRegNostringRequired

Partner registration number issued by Qvalia

accountRegNostringRequired

Account registration number issued by Qvalia

Responses
200
OK
application/json
204
No Content
text/plain
401
Unauthorized
text/plain
500
Internal Server Error
application/json
get
GET /partner/{partnerRegNo}/account/{accountRegNo} HTTP/1.1
Host: api-qa.qvalia.com
Authorization: YOUR_API_KEY
Accept: */*
{
  "status": "success",
  "data": {
    "accountRegNo": "SE1234567890",
    "vatNumber": "SE123456789001",
    "name": "A company AB",
    "email": "john.doe@acompany.com",
    "address": "A street name 123",
    "additionalAddress": "c/o My mailbox",
    "boxAddress": "Box 123",
    "postalCode": "123 45",
    "country": "SE",
    "city": "Stockholm",
    "currency": "SEK",
    "vat": 25,
    "website": "https://www.myweb.com",
    "invoiceEmail": "invoices@myweb.com",
    "invoicePhone": "+468123456",
    "OurReference": "Finance Person",
    "appFeatures": {
      "whiteLabel": {
        "active": true,
        "wl_partners": [
          "wl_acme_partner"
        ]
      },
      "invoiceManagement": {
        "active": true
      },
      "orderManagement": {
        "active": true
      },
      "catalogueManagement": {
        "active": true
      },
      "analytics": {
        "active": true
      },
      "prePosting": {
        "active": true
      },
      "capture": {
        "active": true
      },
      "unspscClassification": {
        "active": true
      },
      "clarityAI": {
        "active": true
      },
      "co2Emission": {
        "active": true
      },
      "workflow": {
        "active": true
      },
      "apiIntegration": {
        "active": true
      },
      "sftpIntegration": {
        "active": true
      },
      "reconciliation": {
        "active": true
      }
    }
  }
}

Get Users in Account

get

An API to fetch (GET) Qvalia users in an account, under your Partner account.

Authorizations
Path parameters
partnerRegNostringRequired

Partner registration number issued by Qvalia

accountRegNostringRequired

Account registration number issued by Qvalia

Responses
200
OK
application/json
204
No Content
text/plain
401
Unauthorized
text/plain
500
Internal Server Error
application/json
get
GET /partner/{partnerRegNo}/account/{accountRegNo}/user HTTP/1.1
Host: api-qa.qvalia.com
Authorization: YOUR_API_KEY
Accept: */*
{
  "status": "success",
  "data": {
    "accountRegNo": "SE1234567890",
    "users": [
      {
        "email": "user@qvalia.com",
        "name": "text",
        "privilege": "viewer",
        "phone": "text",
        "language": "text",
        "title": "text",
        "countryCode": "SE"
      }
    ]
  }
}

Get Users in Account

get

An API to fetch (GET) a Qvalia user in an account, under your Partner account.

Authorizations
Path parameters
partnerRegNostringRequired

Partner registration number issued by Qvalia

accountRegNostringRequired

Account registration number issued by Qvalia

userEmailstringRequired

User email for the account, e.g. "user@qvalia.com"

Responses
200
OK
application/json
204
No Content
text/plain
401
Unauthorized
text/plain
500
Internal Server Error
application/json
get
GET /partner/{partnerRegNo}/account/{accountRegNo}/user/{userEmail} HTTP/1.1
Host: api-qa.qvalia.com
Authorization: YOUR_API_KEY
Accept: */*
{
  "status": "success",
  "data": {
    "accountRegNo": "SE1234567890",
    "user": {
      "email": "user@qvalia.com",
      "name": "text",
      "privilege": "viewer",
      "phone": "text",
      "language": "text",
      "title": "text",
      "countryCode": "SE"
    }
  }
}

Delete User

delete

An API to DELETE a User from a Qvalia account under your Partner account.

Authorizations
Path parameters
partnerRegNostringRequired

Partner registration number issued by Qvalia

accountRegNostringRequired

Account registration number issued by Qvalia

userEmailstringRequired

User email for the account, e.g. "user@qvalia.com"

Responses
200
OK
application/json
401
Unauthorized
text/plain
404
Not Found
text/plain
500
Internal Server Error
application/json
delete
DELETE /partner/{partnerRegNo}/account/{accountRegNo}/user/{userEmail} HTTP/1.1
Host: api-qa.qvalia.com
Authorization: YOUR_API_KEY
Accept: */*
{
  "status": "success",
  "data": {
    "success": "User deleted from account SE1234567890 for partner SE9876543210"
  }
}

Get Bankaccounts in Account

get

An API to fetch (GET) bankaccounts in an account, under your Partner account.

Authorizations
Path parameters
partnerRegNostringRequired

Partner registration number issued by Qvalia

accountRegNostringRequired

Account registration number issued by Qvalia

Responses
200
OK
application/json
204
No Content
text/plain
401
Unauthorized
text/plain
500
Internal Server Error
application/json
get
GET /partner/{partnerRegNo}/account/{accountRegNo}/bankaccount HTTP/1.1
Host: api-qa.qvalia.com
Authorization: YOUR_API_KEY
Accept: */*
{
  "status": "success",
  "data": {
    "accountRegNo": "SE1234567890",
    "bankAccounts": [
      {
        "account_name": "text",
        "type": "text",
        "account_number": "text",
        "is_default": true,
        "description": "text",
        "bic": "text",
        "bank_name": "text",
        "bank_address": "text",
        "bank_postal_code": "text",
        "bank_city": "text",
        "bank_country": "text"
      }
    ]
  }
}

Get Bankaccounts in Account

get

An API to fetch (GET) a Bankaccount in an account, under your Partner account.

Authorizations
Path parameters
partnerRegNostringRequired

Partner registration number issued by Qvalia

accountRegNostringRequired

Account registration number issued by Qvalia

bankAccountstringRequired

A bank account as created, e.g. "SE4550000000058398257466" or "1234-567"

Responses
200
OK
application/json
204
No Content
text/plain
401
Unauthorized
text/plain
500
Internal Server Error
application/json
get
GET /partner/{partnerRegNo}/account/{accountRegNo}/bankaccount/{bankAccount} HTTP/1.1
Host: api-qa.qvalia.com
Authorization: YOUR_API_KEY
Accept: */*
{
  "status": "success",
  "data": {
    "accountRegNo": "SE12345567890",
    "bankAccount": {
      "account_name": "text",
      "type": "text",
      "account_number": "text",
      "is_default": true,
      "description": "text",
      "bic": "text",
      "bank_name": "text",
      "bank_address": "text",
      "bank_postal_code": "text",
      "bank_city": "text",
      "bank_country": "text"
    }
  }
}

Delete Bankaccount

delete

An API to DELETE a Bankaccount from a Qvalia account under your Partner account.

Authorizations
Path parameters
partnerRegNostringRequired

Partner registration number issued by Qvalia

accountRegNostringRequired

Account registration number issued by Qvalia

bankAccountstringRequired

A bank account as created, e.g. "SE4550000000058398257466" or "1234-567"

Responses
200
OK
application/json
401
Unauthorized
text/plain
404
Not Found
text/plain
500
Internal Server Error
application/json
delete
DELETE /partner/{partnerRegNo}/account/{accountRegNo}/bankaccount/{bankAccount} HTTP/1.1
Host: api-qa.qvalia.com
Authorization: YOUR_API_KEY
Accept: */*
{
  "status": "success",
  "data": {
    "success": "Bank account deleted from account SE1234567890 for partner SE9876543210"
  }
}

Get Peppol Identifier

get

Find information about a Peppol identifier.

Authorizations
Path parameters
partnerRegNostringRequired

Partner registration number issued by Qvalia

peppolIdstringRequired

PeppolId for the endpoint, e.g. "0007:9999999999"

Query parameters
docTypeRootstringOptional

Message Type, e.g. Invoice, OrderResponse, MLR

Responses
200
OK
application/json
401
Unauthorized
text/plain
422
Unprocessable Entity
application/json
500
Internal Server Error
application/json
get
GET /partner/{partnerRegNo}/peppol/lookup/{peppolId} HTTP/1.1
Host: api-qa.qvalia.com
Authorization: YOUR_API_KEY
Accept: */*
{
  "status": "success",
  "data": {
    "matches": [
      {
        "participantID": {
          "scheme": "iso6523-actorid-upis",
          "value": "0007:5567321707"
        },
        "docTypes": [
          {
            "scheme": "busdox-docid-qns",
            "value": "urn:oasis:names:specification:ubl:schema:xsd:ApplicationResponse-2::ApplicationResponse##urn:fdc:peppol.eu:poacc:trns:mlr:3::2.1"
          }
        ]
      }
    ],
    "exists": true,
    "rootDocTypeExists": false,
    "source": "SML"
  }
}

Get Account Peppol Identifiers

get

An API to GET Peppol identifiers to a Qvalia account under your Partner account.

Authorizations
Path parameters
partnerRegNostringRequired

Partner registration number issued by Qvalia

accountRegNostringRequired

Account registration number issued by Qvalia

Responses
200
OK
application/json
401
Unauthorized
text/plain
422
Unprocessable Entity
application/json
500
Internal Server Error
application/json
get
GET /partner/{partnerRegNo}/account/{accountRegNo}/peppol HTTP/1.1
Host: api-qa.qvalia.com
Authorization: YOUR_API_KEY
Accept: */*
{
  "status": "success",
  "data": [
    {
      "peppolId": "0007:5567321707",
      "regNo": "SE5567321707",
      "description": "Some PeppolId",
      "businessCard": {
        "companyName": "Qvalia AB",
        "countryCode": "SE",
        "geographicalInformation": "Stockholm",
        "VAT": "SE556732170701",
        "orgNr": "SE5567321707",
        "suffix": "ABC"
      },
      "msgTypes": [
        "invoice-creditnote-2"
      ]
    }
  ]
}

Get Account Peppol Identifier

get

An API to GET a Peppol identifier to a Qvalia account under your Partner account.

Authorizations
Path parameters
partnerRegNostringRequired

Partner registration number issued by Qvalia

accountRegNostringRequired

Account registration number issued by Qvalia

peppolIdstringRequired

PeppolId for the endpoint, e.g. "0007:9999999999"

Responses
200
OK
application/json
401
Unauthorized
text/plain
422
Unprocessable Entity
application/json
500
Internal Server Error
application/json
get
GET /partner/{partnerRegNo}/account/{accountRegNo}/peppol/{peppolId} HTTP/1.1
Host: api-qa.qvalia.com
Authorization: YOUR_API_KEY
Accept: */*
{
  "status": "success",
  "data": {
    "peppolId": "0007:5567321707",
    "regNo": "SE5567321707",
    "description": "Some PeppolId",
    "businessCard": {
      "companyName": "Qvalia AB",
      "countryCode": "SE",
      "geographicalInformation": "Stockholm",
      "VAT": "SE556732170701",
      "orgNr": "SE5567321707",
      "suffix": "ABC"
    },
    "msgTypes": [
      "invoice-creditnote-2"
    ]
  }
}

Delete Account Peppol Identifier

delete

An API to DELETE a Peppol identifier to a Qvalia account under your Partner account.

Authorizations
Path parameters
partnerRegNostringRequired

Partner registration number issued by Qvalia

accountRegNostringRequired

Account registration number issued by Qvalia

peppolIdstringRequired

PeppolId for the endpoint, e.g. "0007:9999999999"

Responses
200
OK
application/json
401
Unauthorized
text/plain
422
Unprocessable Entity
application/json
500
Internal Server Error
application/json
delete
DELETE /partner/{partnerRegNo}/account/{accountRegNo}/peppol/{peppolId} HTTP/1.1
Host: api-qa.qvalia.com
Authorization: YOUR_API_KEY
Accept: */*
{
  "status": "deleted"
}

Get Partner accounts transactions

get

NB! This documented endpoint has a pseudo path URI! (read below)

An API to fetch (GET) your Partner accounts transactions.

Using the prefix of /partner/{partnerRegNo} you, as a partner, can access your accounts transactions through Qvalia Transaction API.

(message-type) and (direction) attributes in URI refers to Transaction API endpoints, e.g. invoices and incoming, which results in /partner/{partnerRegNo}/transaction/{accountRegNo}/invoices/incoming.

(message-type) and (direction) are interchangable for all Transaction API endpoints, as well as for the read endpoints, by adding the read attribute to the URI.

Refer to documentation for handling transactions at Qvalia Transaction API

Authorizations
Path parameters
partnerRegNostringRequired

Partner registration number issued by Qvalia

accountRegNostringRequired

Account registration number issued by Qvalia

Responses
200
See [https://api.qvalia.io/api-documentation/apis/transaction-api](https://api.qvalia.io/api-documentation/apis/transaction-api)
get
GET /partner/{partnerRegNo}/transaction/{accountRegNo}/(message-type)/(direction) HTTP/1.1
Host: api-qa.qvalia.com
Authorization: YOUR_API_KEY
Accept: */*
200

See https://api.qvalia.io/api-documentation/apis/transaction-api

No content

Post Partner accounts transactions

post

NB! This documented endpoint has a pseudo path URI! (read below)

An API to send (POST) your Partner accounts transactions.

Using the prefix of /partner/{partnerRegNo} you, as a partner, can access your accounts transactions through Qvalia Transaction API.

(message-type) and (direction) attributes in URI refers to Transaction API endpoints, e.g. invoices and incoming, which results in /partner/{partnerRegNo}/transaction/{accountRegNo}/invoices/incoming.

(message-type) and (direction) are interchangable for all Transaction API endpoints, as well as for the read endpoints, by adding the read attribute to the URI.

Refer to documentation for handling transactions at Qvalia Transaction API

Authorizations
Path parameters
partnerRegNostringRequired

Partner registration number issued by Qvalia

accountRegNostringRequired

Account registration number issued by Qvalia

Responses
200
See [https://api.qvalia.io/api-documentation/apis/transaction-api](https://api.qvalia.io/api-documentation/apis/transaction-api)
post
POST /partner/{partnerRegNo}/transaction/{accountRegNo}/(message-type)/(direction) HTTP/1.1
Host: api-qa.qvalia.com
Authorization: YOUR_API_KEY
Accept: */*
200

See https://api.qvalia.io/api-documentation/apis/transaction-api

No content

  • GETGet Accounts
  • POSTPost Account
  • GETGet Account
  • PUTPost Account
  • GETGet Users in Account
  • POSTPost Account
  • GETGet Users in Account
  • PUTPut Account
  • DELETEDelete User
  • GETGet Bankaccounts in Account
  • POSTPost Bankaccount
  • GETGet Bankaccounts in Account
  • PUTPut Bankaccount
  • DELETEDelete Bankaccount
  • GETGet Peppol Identifier
  • GETGet Account Peppol Identifiers
  • GETGet Account Peppol Identifier
  • PUTPut Account Peppol Identifier
  • DELETEDelete Account Peppol Identifier
  • GETGet Partner accounts transactions
  • POSTPost Partner accounts transactions

Get Accounts

get

An API to fetch (GET) Qvalia accounts under your Partner account.

Authorizations
Path parameters
partnerRegNostringRequired

Partner registration number issued by Qvalia

Responses
200
OK
application/json
204
No Content
text/plain
401
Unauthorized
text/plain
500
Internal Server Error
application/json
get
GET /partner/{partnerRegNo}/account HTTP/1.1
Host: api-qa.qvalia.com
Authorization: YOUR_API_KEY
Accept: */*
{
  "status": "success",
  "data": {
    "accounts": [
      {
        "accountRegNo": "SE1234567890",
        "vatNumber": "SE123456789001",
        "name": "A company AB",
        "email": "john.doe@acompany.com",
        "address": "A street name 123",
        "additionalAddress": "c/o My mailbox",
        "boxAddress": "Box 123",
        "postalCode": "123 45",
        "country": "SE",
        "city": "Stockholm",
        "currency": "SEK",
        "vat": 25,
        "website": "https://www.myweb.com",
        "invoiceEmail": "invoices@myweb.com",
        "invoicePhone": "+468123456",
        "OurReference": "Finance Person",
        "appFeatures": {
          "whiteLabel": {
            "active": true,
            "wl_partners": [
              "wl_acme_partner"
            ]
          },
          "invoiceManagement": {
            "active": true
          },
          "orderManagement": {
            "active": true
          },
          "catalogueManagement": {
            "active": true
          },
          "analytics": {
            "active": true
          },
          "prePosting": {
            "active": true
          },
          "capture": {
            "active": true
          },
          "unspscClassification": {
            "active": true
          },
          "clarityAI": {
            "active": true
          },
          "co2Emission": {
            "active": true
          },
          "workflow": {
            "active": true
          },
          "apiIntegration": {
            "active": true
          },
          "sftpIntegration": {
            "active": true
          },
          "reconciliation": {
            "active": true
          }
        }
      }
    ],
    "total": 1
  }
}

Post Account

post

An API to add (POST) a Qvalia account under your Partner account.

Authorizations
Path parameters
partnerRegNostringRequired

Partner registration number issued by Qvalia

Body
accountRegNostringRequiredExample: SE1234567890
vatNumberstringOptional

This is normally EU VAT number used for creating supplier invoices

Example: SE123456789001
namestringRequiredExample: A company AB
emailstringOptionalExample: john.doe@acompany.com
addressstringRequiredExample: A street name 123
additionalAddressstringOptionalExample: c/o My mailbox
boxAddressstringOptionalExample: Box 123
postalCodestringRequiredExample: 123 45
countrystringRequiredExample: SEPattern: ^[A-Z]{2}$
citystringOptionalExample: Stockholm
currencystringOptionalExample: SEK
vatnumberOptional

This is the default VAT rate used for creating supplier invoices

Example: 25
websitestringOptional

This is used in page footer of PDF supplier invoices

Example: https://www.myweb.com
invoiceEmailstringOptional

This is used in page footer of PDF supplier invoices

Example: invoices@myweb.com
invoicePhonestringOptional

This is used in page footer of PDF supplier invoices

Example: +468123456
OurReferencestringOptional

This is used in page footer of PDF supplier invoices

Example: Finance Person
Responses
200
OK
application/json
401
Unauthorized
text/plain
409
Conflict
application/json
422
Unprocessable Entity
application/json
500
Internal Server Error
application/json
post
POST /partner/{partnerRegNo}/account HTTP/1.1
Host: api-qa.qvalia.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 910

{
  "accountRegNo": "SE1234567890",
  "vatNumber": "SE123456789001",
  "name": "A company AB",
  "email": "john.doe@acompany.com",
  "address": "A street name 123",
  "additionalAddress": "c/o My mailbox",
  "boxAddress": "Box 123",
  "postalCode": "123 45",
  "country": "SE",
  "city": "Stockholm",
  "currency": "SEK",
  "vat": 25,
  "website": "https://www.myweb.com",
  "invoiceEmail": "invoices@myweb.com",
  "invoicePhone": "+468123456",
  "OurReference": "Finance Person",
  "appFeatures": {
    "whiteLabel": {
      "active": true,
      "wl_partners": [
        "wl_acme_partner"
      ]
    },
    "invoiceManagement": {
      "active": true
    },
    "orderManagement": {
      "active": true
    },
    "catalogueManagement": {
      "active": true
    },
    "analytics": {
      "active": true
    },
    "prePosting": {
      "active": true
    },
    "capture": {
      "active": true
    },
    "unspscClassification": {
      "active": true
    },
    "clarityAI": {
      "active": true
    },
    "co2Emission": {
      "active": true
    },
    "workflow": {
      "active": true
    },
    "apiIntegration": {
      "active": true
    },
    "sftpIntegration": {
      "active": true
    },
    "reconciliation": {
      "active": true
    }
  }
}
{
  "success": "account SE1234567890 created for partner SE9876543210"
}

Post Account

put

An API to change (PUT) a Qvalia account under your Partner account.

Authorizations
Path parameters
partnerRegNostringRequired

Partner registration number issued by Qvalia

accountRegNostringRequired

Account registration number issued by Qvalia

Body
vatNumberstringOptional

This is normally EU VAT number used for creating supplier invoices

Example: SE123456789001
namestringOptionalExample: A company AB
emailstringOptionalExample: john.doe@acompany.com
addressstringOptionalExample: A street name 123
additionalAddressstringOptionalExample: c/o My mailbox
boxAddressstringOptionalExample: Box 123
postalCodestringOptionalExample: 123 45
countrystringOptionalExample: SEPattern: ^[A-Z]{2}$
citystringOptionalExample: Stockholm
currencystringOptionalExample: SEK
vatnumberOptional

This is the default VAT rate used for creating supplier invoices

Example: 25
websitestringOptional

This is used in page footer of PDF supplier invoices

Example: https://www.myweb.com
invoiceEmailstringOptional

This is used in page footer of PDF supplier invoices

Example: invoices@myweb.com
invoicePhonestringOptional

This is used in page footer of PDF supplier invoices

Example: +468123456
OurReferencestringOptional

This is used in page footer of PDF supplier invoices

Example: Finance Person
Responses
200
OK
application/json
401
Unauthorized
text/plain
404
Not Found
text/plain
422
Unprocessable Entity
application/json
500
Internal Server Error
application/json
put
PUT /partner/{partnerRegNo}/account/{accountRegNo} HTTP/1.1
Host: api-qa.qvalia.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 880

{
  "vatNumber": "SE123456789001",
  "name": "A company AB",
  "email": "john.doe@acompany.com",
  "address": "A street name 123",
  "additionalAddress": "c/o My mailbox",
  "boxAddress": "Box 123",
  "postalCode": "123 45",
  "country": "SE",
  "city": "Stockholm",
  "currency": "SEK",
  "vat": 25,
  "website": "https://www.myweb.com",
  "invoiceEmail": "invoices@myweb.com",
  "invoicePhone": "+468123456",
  "OurReference": "Finance Person",
  "appFeatures": {
    "whiteLabel": {
      "active": true,
      "wl_partners": [
        "wl_acme_partner"
      ]
    },
    "invoiceManagement": {
      "active": true
    },
    "orderManagement": {
      "active": true
    },
    "catalogueManagement": {
      "active": true
    },
    "analytics": {
      "active": true
    },
    "prePosting": {
      "active": true
    },
    "capture": {
      "active": true
    },
    "unspscClassification": {
      "active": true
    },
    "clarityAI": {
      "active": true
    },
    "co2Emission": {
      "active": true
    },
    "workflow": {
      "active": true
    },
    "apiIntegration": {
      "active": true
    },
    "sftpIntegration": {
      "active": true
    },
    "reconciliation": {
      "active": true
    }
  }
}
{
  "success": "account SE1234567890 updated for partner SE9876543210"
}

Post Account

post

An API to add (POST) a User to a Qvalia account under your Partner account.

Authorizations
Path parameters
partnerRegNostringRequired

Partner registration number issued by Qvalia

accountRegNostringRequired

Account registration number issued by Qvalia

Body
emailstringRequiredExample: user@qvalia.com
namestringRequired
privilegestring · enumOptionalPattern: ^(viewer|user|admin)$Possible values:
phonestring | nullableOptional
languagestring · enumRequiredPattern: ^[en|sv|fi]$Possible values:
titlestring | nullableOptional
Responses
200
OK
application/json
401
Unauthorized
text/plain
409
Conflict
application/json
422
Unprocessable Entity
application/json
500
Internal Server Error
application/json
post
POST /partner/{partnerRegNo}/account/{accountRegNo}/user HTTP/1.1
Host: api-qa.qvalia.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 108

{
  "email": "user@qvalia.com",
  "name": "text",
  "privilege": "viewer",
  "phone": "text",
  "language": "en",
  "title": "text"
}
{
  "status": "success",
  "data": {
    "success": "User users@qvalia.com added to account SE1234567890 for partner SE9876543210"
  }
}

Put Account

put

An API to update (PUT) a User to a Qvalia account under your Partner account.

Authorizations
Path parameters
partnerRegNostringRequired

Partner registration number issued by Qvalia

accountRegNostringRequired

Account registration number issued by Qvalia

userEmailstringRequired

User email for the account, e.g. "user@qvalia.com"

Body
namestringOptional
privilegestring · enumOptionalPattern: ^(viewer|user|admin)$Possible values:
phonestring | nullableOptional
languagestringOptional
titlestring | nullableOptional
countryCodestring | nullableOptionalExample: SEPattern: ^[A-Z]{2}$
Responses
200
OK
application/json
401
Unauthorized
text/plain
404
Not Found
text/plain
422
Unprocessable Entity
application/json
500
Internal Server Error
application/json
put
PUT /partner/{partnerRegNo}/account/{accountRegNo}/user/{userEmail} HTTP/1.1
Host: api-qa.qvalia.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 103

{
  "name": "text",
  "privilege": "viewer",
  "phone": "text",
  "language": "text",
  "title": "text",
  "countryCode": "SE"
}
{
  "status": "success",
  "data": {
    "success": "User users@qvalia.com updated for account SE1234567890 for partner SE9876543210"
  }
}

Post Bankaccount

post

An API to add (POST) a Bankaccount to a Qvalia account under your Partner account.

The bank account for the partner account is used when/if a partner account generates/creates an invoice in Qvalia Apps. If your customer don't have access to Qvalia standard App, e.g. you are using a White Label solution, the bank account marked as is_default will be used (and only one default account may exist!).

For Swedish companies (country: SE) Plusgiro and Bankgiro are allowed as type, for any other country either IBAN or AccountNumber should be used!

The type AccountNumber shall be used for any unspecified, and local, bank accounts (i.e. that's not IBAN, Bankgiro or Plusgiro)

The account_number attribute is used for all account types, and for IBAN it must start with the country code, e.g. SE4550000000058398257466.

bic (or S.W.I.F.T. code) is optional if IBAN is given.

Authorizations
Path parameters
partnerRegNostringRequired

Partner registration number issued by Qvalia

accountRegNostringRequired

Account registration number issued by Qvalia

Body
account_namestringRequired
typestring · enumRequiredPattern: [IBAN|Bankgiro|Plusgiro|AccountNumber]Possible values:
account_numberstringRequired
is_defaultbooleanOptional
descriptionstringOptional
bicstringOptionalPattern: ^[A-Z]{6}[0-9A-Z]{2}([0-9A-Z]{3})?$
bank_namestringOptional
bank_addressstringOptional
bank_postal_codestringOptional
bank_citystringOptional
bank_countrystringOptional
Responses
200
OK
application/json
401
Unauthorized
text/plain
409
Conflict
application/json
422
Unprocessable Entity
application/json
500
Internal Server Error
application/json
post
POST /partner/{partnerRegNo}/account/{accountRegNo}/bankaccount HTTP/1.1
Host: api-qa.qvalia.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 221

{
  "account_name": "text",
  "type": "IBAN",
  "account_number": "text",
  "is_default": true,
  "description": "text",
  "bic": "text",
  "bank_name": "text",
  "bank_address": "text",
  "bank_postal_code": "text",
  "bank_city": "text",
  "bank_country": "text"
}
{
  "status": "success",
  "data": {
    "success": "Bankaccount added to account SE1234567890 for partner SE9876543210"
  }
}

Put Bankaccount

put

An API to update (PUT) a Bankaccount to a Qvalia account under your Partner account.

The bank account for the partner account is used when/if a partner account generates/creates an invoice in Qvalia Apps. If your customer don't have access to Qvalia standard App, e.g. you are using a White Label solution, the bank account marked as is_default will be used (and only one default account may exist!).

For Swedish companies (country: SE) Plusgiro and Bankgiro are allowed as type, for any other country either IBAN or AccountNumber should be used!

The type AccountNumber shall be used for any unspecified, and local, bank accounts (i.e. that's not IBAN, Bankgiro or Plusgiro)

The account_number attribute is used for all account types, and for IBAN it must start with the country code, e.g. SE4550000000058398257466.

bic (or S.W.I.F.T. code) is optional if IBAN is given.

Authorizations
Path parameters
partnerRegNostringRequired

Partner registration number issued by Qvalia

accountRegNostringRequired

Account registration number issued by Qvalia

bankAccountstringRequired

A bank account as created, e.g. "SE4550000000058398257466" or "1234-567"

Body
account_namestringRequired
typestring · enumRequiredPattern: [IBAN|Bankgiro|Plusgiro|AccountNumber]Possible values:
is_defaultbooleanOptional
descriptionstringOptional
bicstringOptionalPattern: ^[A-Z]{6}[0-9A-Z]{2}([0-9A-Z]{3})?$
bank_namestringOptional
bank_addressstringOptional
bank_postal_codestringOptional
bank_citystringOptional
bank_countrystringOptional
Responses
200
OK
application/json
401
Unauthorized
text/plain
404
Not Found
text/plain
422
Unprocessable Entity
application/json
500
Internal Server Error
application/json
put
PUT /partner/{partnerRegNo}/account/{accountRegNo}/bankaccount/{bankAccount} HTTP/1.1
Host: api-qa.qvalia.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 197

{
  "account_name": "text",
  "type": "IBAN",
  "is_default": true,
  "description": "text",
  "bic": "text",
  "bank_name": "text",
  "bank_address": "text",
  "bank_postal_code": "text",
  "bank_city": "text",
  "bank_country": "text"
}
{
  "status": "success",
  "data": {
    "success": "Bank account updated for account SE1234567890 for partner SE9876543210"
  }
}

Put Account Peppol Identifier

put

An API to add or update (PUT) a Peppol identifier to a Qvalia account under your Partner account.

If you utilize a Peppol group (receiving) for Peppol identifiers and not having separate Qvalia accounts for each of your customers then{accountRegNo} is your {partnerRegNo}

Peppol Document Types

You can find the list of allowed Peppol document types by navigating tohttps://docs.peppol.eu/edelivery/codelists/

They are updating the lists regularly but under that URL you'll always find the current active version. Under “Artifact” find the Document Types vX.X and click the “as HTML” to get a view of the list.

Under Associated Process/Profile Identifier(s) (on the far right in the table) you'll find the docTypes.profile value and under Peppol Document Type Identifier Value you'll get the value fordocTypes.document.

If you register for Invoice, you should also register forCreditNote!

Add and update through a PUT

We've opted for a PUT operation for the creation (add) and update of Peppol identifiers as it is rather messy trying to update in a JSON structure. This means that you have to send the full object at any change (and obviously at create).

We'd recommend to write your code to first do a GET to find the current settings for the identifier, and then update the values you want to update and send the changed object in a PUT request.

The businessCard information is what is being added to the Peppol Directory and shown there, e.g.:https://directory.peppol.eu/public/locale-en US/menuitem-search?q=qvalia&action=view&participant=iso6523-actorid-upis%3A%3A0007%3A5567321707

Authorizations
Path parameters
partnerRegNostringRequired

Partner registration number issued by Qvalia

accountRegNostringRequired

Account registration number issued by Qvalia

peppolIdstringRequired

PeppolId for the endpoint, e.g. "0007:9999999999"

Body
descriptionstringOptionalExample: Some PeppolId
Responses
200
OK
application/json
401
Unauthorized
text/plain
422
Unprocessable Entity
application/json
500
Internal Server Error
application/json
put
PUT /partner/{partnerRegNo}/account/{accountRegNo}/peppol/{peppolId} HTTP/1.1
Host: api-qa.qvalia.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 374

{
  "description": "Some PeppolId",
  "businessCard": {
    "companyName": "Qvalia AB",
    "countryCode": "SE",
    "geographicalInformation": "Stockholm",
    "VAT": "SE556732170701",
    "orgNr": "SE5567321707",
    "suffix": "ABC"
  },
  "docTypes": [
    {
      "profile": "urn:fdc:peppol.eu:poacc:bis:ordering:3",
      "document": "urn:oasis:names:specification:ubl:schema:xsd:Order-2::Order##urn:fdc:peppol.eu:poacc:trns:order:3::2.1"
    }
  ]
}
{
  "status": "updated",
  "peppolId": "0007:9999999999"
}