Marvia Developer Portal
DocsAPI ReferenceAbout
DocsAPI ReferenceAbout
  1. Locations
  • Users
    • Get a user
      GET
    • Delete a user
      DELETE
    • Update a user
      PATCH
    • List
      GET
    • Create a new user
      POST
    • Get user locations
      GET
    • Update user locations
      PUT
    • Get user groups
      GET
    • Update user groups
      PUT
  • Products
    • List products
      GET
    • Get a product
      GET
    • Get product API module
      GET
    • Get product delivery module
      GET
    • Get product distribution module
      GET
    • Get product locations module
      GET
    • Get product files module
      GET
    • Get product stock module
      GET
    • Get product price module
      GET
    • Get product workflow module
      GET
    • Get product socials module
      GET
    • Get product internal comment module
      GET
    • Get product campaigns module
      GET
    • Get product permissions module
      GET
    • Get product reservations module
      GET
    • Get product template module
      GET
    • Get product form builder module
      GET
    • Get product variants module
      GET
  • Locations
    • Update a location
      PATCH
    • Get a location
      GET
    • Delete a location
      DELETE
    • List locations
      GET
    • Create a new location
      POST
  • Groups
    • Get a group
    • Update a group
    • Delete a group
    • List groups
    • Create a new group
  • Uploads
    • Initialize multipart upload
    • Complete multipart upload
  • Assets
    • List assets
    • Create a new asset
    • Get asset
    • Update an asset
    • Search assets
    • Get all meta tags
    • Get asset meta tags
    • Update asset meta tags
  • Posts
    • List posts
    • Get a post
DocsAPI ReferenceAbout
DocsAPI ReferenceAbout
  1. Locations

Create a new location

Production
https://api-v2.getmarvia.com
Production
https://api-v2.getmarvia.com
POST
https://api-v2.getmarvia.com
/v1/locations
Required Permission: create:locations
This endpoint requires an API key with the create:locations permission. Make sure your token was created with this permission during token creation.

Request

Authorization
API Key
Add parameter in header
Authorization
Example:
Authorization: ********************
or
API Key
Add parameter in header
Authorization
Example:
Authorization: ********************
or
Header Params

Body Params application/jsonRequired

Examples

Responses

🟢201Created
application/json
Success
Body

🟠400Bad Request
🟠401Unauthorized
🟠409Conflict
🔴500Internal Server Error
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api-v2.getmarvia.com/v1/locations' \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "name": "string",
    "identifier": "string",
    "address": {
        "addressLine1": "string",
        "addressLine2": "string",
        "attentionOf": "string",
        "city": "string",
        "zone": "string",
        "countryCode": "string",
        "zipcode": "string"
    },
    "legal": {
        "address": {
            "addressLine1": "string",
            "addressLine2": "string",
            "attentionOf": "string",
            "city": "string",
            "zone": "string",
            "countryCode": "string",
            "zipcode": "string"
        }
    },
    "invoice": {
        "name": "string",
        "email": "string",
        "address": {
            "addressLine1": "string",
            "addressLine2": "string",
            "attentionOf": "string",
            "city": "string",
            "zone": "string",
            "countryCode": "string",
            "zipcode": "string"
        }
    },
    "contact": {
        "email": "string",
        "website": "string",
        "phone": "string",
        "mobile": "string",
        "firstName": "string"
    },
    "coordinates": {
        "latitude": 0,
        "longitude": 0
    }
}'
Response Response Example
201 - Example 1
{
    "_tag": "Success",
    "data": {
        "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f"
    }
}
Modified at 2025-12-01 12:41:52
Previous
List locations
Next
Get a group
Built with