Prices

This endpoint can be used to retrieve price info per category and/or portal

Reference

GET /prices/<userId>/<categoryId>/<portal>

Fields

field type description/constraints Req W U
userId int Yes No No
categoryId int Yes No No
portal string Available options:
  • marktplaats
  • tweedehands
  • website
Yes No No
prices array/boolean List of price-objects
false -> no price-information available.
No No No


Fields price

field type description/constraints Req W U
action string Name of the action. 

Available options:

marktplaats:
  • plaatsen
  • omhoogplaatsen
  • dagtopper
  • dagtopper3
  • dagtopper7
  • homepaginaAdvertentie
  • url
website:
  • plaatsen
Yes No No
priceInternal int The amount the user pays to GoedGeplaatst Yes No No
priceExternal int Additional price to be paid directly to the specified portal (in whole cents). Users are billed directly by Marktplaats/Tweedehands Yes No No
priceTotal int The total costs for this action (priceInternal + priceExternal) Yes No No
pricePortalNative int The native/original price for this action on the specified portal when not using GoedGeplaatst (in whole cents) Yes No No


Example retrieving prices

Request

GET /rest/v1/prices/12311/1/marktplaats HTTP/2

Response

{
 "result": true,
 "errors": [],
 "data": {
   "userId": 12311,
   "categoryId": 1,
   "portal": "marktplaats",
   "prices": [
     {
       "action": "plaatsen",
       "priceInternal": 10,
       "priceExternal": 29,
       "priceTotal": 39,
       "priceNative": 0
     },
     {
       "action": "omhoogplaatsen",
       "priceInternal": 30,
       "priceExternal": 130,
       "priceTotal": 160,
       "priceNative": 0
     },
     {
       "action": "blikvanger",
       "priceInternal": 30,
       "priceExternal": 1653,
       "priceTotal": 1683,
       "priceNative": 0
     },
     {
       "action": "dagtopper",
       "price": 30,
       "priceAdditional": 112,
       "priceTotal": 142,
       "priceNative": 0
     },
     {
       "action": "topadvertentie",
       "priceInternal": 30,
       "priceExternal": 247,
       "priceTotal": 277,
       "priceNative": 0
     }
   ]
 }
}