Logo PopinaPopina API

Import a new location

Import/Create a new location from legacyBO based on the legacy application name and id.

POST/v1/locations/import
authorization<token>

To get an API key, please contact us. We'll be happy to help you.

In: header

organizationIdstring

Organization ID

Formatuuid
agencyIdstring

Agency ID

Formatuuid
legacyIdinteger

Legacy backoffice identifier

Range1 <= value
applicationstring

POS application

Value in"POPINA" | "JALIA"

Response Body

application/json

curl -X POST "https://api-staging.pragma-project.dev/v1/locations/import" \  -H "Content-Type: application/json" \  -d '{    "application": "JALIA",    "legacyId": 2,    "agencyId": "cd53ee79-98bb-42b5-913a-f9854b1e6177",    "organizationId": "ed41b44e-01e6-4a5b-b9f0-fe365a40314c"  }'
{
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "createdAt": "2019-08-24T14:15:22Z",
  "updatedAt": "2019-08-24T14:15:22Z",
  "application": "POPINA",
  "legacyId": -9007199254740991
}