Get marketplace invoice recipient

Action type: Get
Resource type: getMarketplaceInvoiceRecipient

Gets information about the marketplace invoice recipient.

See technical marketplace documentation for more information.

Parameter:

  • transactionid
    INTEGER. MANDATORY. Transaction ID.
  • userid
    INTEGER. MANDATORY. User id of the paying customer.

Example:

...
{
    "actionid": "urn:onoffice-de-ns:smart:2.5:smartml:action:get",
    "resourceid": "",
    "identifier": "",
    "resourcetype": "getMarketplaceInvoiceRecipient",
    "parameters": {
        "transactionid": "<ID der Transaction>",
        "userid": "<ID des zahlenden Benutzers>"
    }
}
...

Response:

  • salutation
    Salutation
  • firstname
    First name
  • lastname
    Last name
  • companyname
    Company name
  • address
    Address
  • zipcode
    Zip code
  • city
    City
  • country
    Country
  • email
    Email
...
{
    "status": {
        "code": 200,
        "errorcode": 0,
        "message": "OK"
    },
    "response": {
        "results": [
            {
                "actionid": "urn:onoffice-de-ns:smart:2.5:smartml:action:get",
                "resourceid": "",
                "resourcetype": "getMarketplaceInvoiceRecipient",
                "cacheable": false,
                "identifier": "",
                "data": {
                    "meta": {
                        "cntabsolute": 1
                    },
                    "records": [
                        {
                            "id": 0,
                            "type": "",
                            "elements": {
                                "salutation": "Herr",
                                "firstname": "Theo",
                                "lastname": "Test",
                                "companyname": "onOffice GmbH",
                                "address": "Charlottenburger Allee 5",
                                "zipcode": "52068",
                                "city": "Aachen",
                                "country": "Deutschland",
                                "email": "theo.test@onoffice.de"
                            }
                        }
                    ]
                },
                "status": {
                    "errorcode": 0,
                    "message": "OK"
                }
            }
        ]
    }
}
...

Possible API error codes:
184: User id is not existing or inactive (INFO: User id in the order is not the same as the transaction buying user id)
188: The user data could not be found
189: The transaction could not be found
190: The time to call the transaction has expired