Skip to content
campaiDeveloper
campai.com

Sales · Shop

GET/{organizationId}/{mandateId}/sales/shopReads only

Get shop

Returns the shop settings of the mandate, or null while the mandate has no shop

Permissions

Send an API key of the organization in the path, using the X-API-Key header.

Permission checks in detail
Required permissions
  • mandate.read
  • shop.read
Also checked, depending on the request and the records it touches
  • user.read
  • apiKey.read
  • contact:member.read
  • contact:address.read
  • contact:customer.read
  • contact:sponsor.read
  • contact:contributor.read
  • contact:employee.read
  • contact:supplier.read
  • contact.read

Request

Path parameters

  • organizationIdidrequired
  • mandateIdidrequired
Request
curl --fail-with-body --silent --show-error --max-time 30 --globoff \
  --request GET 'https://cloud.campai.com/api/YOUR_ORGANIZATION_ID/YOUR_MANDATE_ID/sales/shop' \
  --header 'X-API-Key: YOUR_API_KEY'

Response

200 Successful response

Content-Type: application/json

  • _idid
  • createdAtstring · date-timenullable
  • updatedAtstring · date-timenullable
  • removedAtstring · date-timenullable
  • createdByobjectnullable
  • updatedByobjectnullable
  • removedByobjectnullable
  • __ignoreTriggersstringnullable
  • organizationid
  • mandateid
  • namestring

    1–80 characters

  • descriptionstring

    at most 2000 characters

  • openboolean
  • discoverableboolean
  • paymentMethodsobject
    4 properties
    • sepaCreditTransferobjectnullable
      3 properties
      • internalboolean
      • cashAccountid
      • notestring

        at most 300 characters

    • sepaDirectDebitobjectnullable
      3 properties
      • internalboolean
      • cashAccountid
      • notestring

        at most 300 characters

    • onlineobjectnullable
      4 properties
      • internalboolean
      • notestring

        at most 300 characters

      • stripebooleannullable

        default true

      • paypalbooleannullable

        default false

    • cashobjectnullable
      2 properties
      • internalboolean
      • notestring

        at most 300 characters

  • deliveryOptionsobject[]

    at most 10 items

    5 properties
    • idstring

      exactly 8 characters

    • namestring

      1–50 characters

    • descriptionstring

      at most 140 characters

    • typestring
      shipping pickup
    • productidnullable
  • returnDaysinteger

    0–365

  • termsstring

    at most 10000 characters

  • staffEmailsstring[]

    at most 10 items

Response200
{
  "_id": "000000000000000000000001",
  "organization": "000000000000000000000001",
  "mandate": "000000000000000000000001",
  "name": "string",
  "description": "string",
  "open": true,
  "discoverable": true,
  "paymentMethods": {
    "sepaCreditTransfer": {
      "internal": true,
      "cashAccount": "000000000000000000000001",
      "note": "string"
    },
    "sepaDirectDebit": {
      "internal": true,
      "cashAccount": "000000000000000000000001",
      "note": "string"
    },
    "online": {
      "internal": true,
      "note": "string",
      "stripe": true,
      "paypal": false
    },
    "cash": {
      "internal": true,
      "note": "string"
    }
  },
  "deliveryOptions": [
    {
      "id": "string",
      "name": "string",
      "description": "string",
      "type": "shipping",
      "product": "000000000000000000000001"
    }
  ],
  "returnDays": 0,
  "terms": "string",
  "staffEmails": [
    "string"
  ]
}

Errors

No errors of its own are known for this endpoint.

Errors nearly every request can meet are listed under Errors.