DocsAPI ReferenceAbout
DocsAPI ReferenceAbout
  1. Locations
  • Overview
  • Getting Started
  • Authentication
  • Permissions
  • Using the Marvia CDN
  • API Reference
    • Users
      • Get a user
      • Delete a user
      • List
      • Create a new user
    • Products
      • List products
    • 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 by UUID
      • Update an asset
      • Search assets
  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
Header Params

Body Params application/json

Examples

Responses

🟢201Created
application/json
Success
Body

🟠400Bad Request
🟠401Unauthorized
🟠409409
🔴500Server 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-09-08 06:20:01
Previous
List locations
Next
Get a group
Built with