Skip to content
campaiDeveloper
campai.com

Sales · Shop

GET/{organizationId}/{mandateId}/sales/shop/orders/{orderId}Reads only

Get shop order

Returns a shop order with its delivery, returns and the payment state of its invoice

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
  • shopOrder.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
  • orderIdidrequired
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/orders/YOUR_ORDER_ID' \
  --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
  • shopid
  • numberstring
  • userobject
    4 properties
    • namestring
    • typestring
    • userIdstring
    • imageobjectnullable
      4 properties
      • resourcestring

        at least 1 characters

      • fileNamestring

        at most 128 characters

      • contentTypestring

        at most 75 characters

      • fileSizeBytesinteger

        at least 0

  • contactobjectnullable
    7 properties
    • namestring
    • typestring
    • nameNormalizedstring
    • nameSortstring
    • contactidnullable
    • imageobjectnullable
      4 properties
      • resourcestring

        at least 1 characters

      • fileNamestring

        at most 128 characters

      • contentTypestring

        at most 75 characters

      • fileSizeBytesinteger

        at least 0

    • userobjectnullable
      4 properties
      • namestring
      • typestring
      • userIdstring
      • imageobjectnullable
        4 properties
        • resourcestring

          at least 1 characters

        • fileNamestring

          at most 128 characters

        • contentTypestring

          at most 75 characters

        • fileSizeBytesinteger

          at least 0

  • customerobject
    3 properties
    • namestring

      1–81 characters

    • emailstring
    • phonestring

      at most 40 characters

  • billingAddressobject
    7 properties
    • countrystring
    • statestring
    • zipstring

      at most 10 characters

    • citystring

      at most 45 characters

    • addressLinestring

      at most 45 characters

    • details1string

      at most 45 characters

    • details2string

      at most 45 characters

  • deliveryobject
    6 properties
    • optionstring

      exactly 8 characters

    • namestring
    • descriptionstring
    • typestring
      shipping pickup
    • addressobjectnullable
      7 properties
      • countrystring
      • statestring
      • zipstring

        at most 10 characters

      • citystring

        at most 45 characters

      • addressLinestring

        at most 45 characters

      • details1string

        at most 45 characters

      • details2string

        at most 45 characters

    • amountinteger

      0–9999999999

  • linesobject[]

    1–50 items

    9 properties
    • idstring

      exactly 8 characters

    • productid
    • parentidnullable
    • namestring
    • variantNamestring
    • imageobjectnullable
      4 properties
      • resourcestring

        at least 1 characters

      • fileNamestring

        at most 128 characters

      • contentTypestring

        at most 75 characters

      • fileSizeBytesinteger

        at least 0

    • quantityinteger
    • unitAmountinteger

      0–9999999999

    • memberPriceNamestringnullable
  • totalAmountinteger

    0–9999999999

  • paymentMethodstringnullable
    sepaCreditTransfer sepaDirectDebit cash online
  • notestring

    at most 500 characters

  • statusstring
    open shipped readyForPickup completed canceled
  • statusChangedAtstring · date-time
  • trackingNumberstring

    at most 100 characters

  • trackingUrlstring · urinullable
  • deliveredAtstring · date-timenullable
  • receiptid
  • receiptNumberstring
  • returnsobject[]

    at most 20 items

    9 properties
    • idstring

      exactly 8 characters

    • statusstring
      requested accepted received rejected
    • linesobject[]

      1–50 items

      2 properties
      • linestring

        exactly 8 characters

      • quantityinteger
    • reasonstring

      at most 500 characters

    • requestedAtstring · date-time
    • decidedAtstring · date-timenullable
    • decisionNotestring

      at most 500 characters

    • receivedAtstring · date-timenullable
    • refundReceiptidnullable
  • invoiceobject
    3 properties
    • paymentStatusstringnullable
      unpaid partial paid
    • totalAmountLeftToPaynumber
    • canceledboolean
Response200
{
  "_id": "000000000000000000000001",
  "organization": "000000000000000000000001",
  "mandate": "000000000000000000000001",
  "shop": "000000000000000000000001",
  "number": "string",
  "user": {
    "name": "string",
    "type": "user",
    "userId": "string",
    "image": {
      "resource": "string"
    }
  },
  "contact": {
    "name": "string",
    "type": "contact",
    "nameNormalized": "string",
    "nameSort": "string",
    "contact": "000000000000000000000001",
    "image": {
      "resource": "string"
    },
    "user": {
      "name": "string",
      "type": "user",
      "userId": "string",
      "image": {
        "resource": "string"
      }
    }
  },
  "customer": {
    "name": "string",
    "email": "string",
    "phone": "string"
  },
  "billingAddress": {
    "country": "string",
    "zip": "string",
    "city": "string",
    "addressLine": "string"
  },
  "delivery": {
    "option": "string",
    "name": "string",
    "description": "string",
    "type": "shipping",
    "address": {
      "country": "string",
      "zip": "string",
      "city": "string",
      "addressLine": "string"
    },
    "amount": 0
  },
  "lines": [
    {
      "id": "string",
      "product": "000000000000000000000001",
      "parent": "000000000000000000000001",
      "name": "string",
      "variantName": "string",
      "image": {
        "resource": "string"
      },
      "quantity": 1,
      "unitAmount": 0,
      "memberPriceName": "string"
    }
  ],
  "totalAmount": 0,
  "paymentMethod": "sepaCreditTransfer",
  "note": "string",
  "status": "open",
  "statusChangedAt": "2026-06-15T22:30:00Z",
  "trackingNumber": "string",
  "trackingUrl": "string",
  "deliveredAt": "2026-06-15T22:30:00Z",
  "receipt": "000000000000000000000001",
  "receiptNumber": "string",
  "returns": [
    {
      "id": "string",
      "status": "requested",
      "lines": [
        {
          "line": "string",
          "quantity": 1
        }
      ],
      "reason": "string",
      "requestedAt": "2026-06-15T22:30:00Z",
      "decidedAt": "2026-06-15T22:30:00Z",
      "decisionNote": "string",
      "receivedAt": "2026-06-15T22:30:00Z",
      "refundReceipt": "000000000000000000000001"
    }
  ],
  "invoice": {
    "paymentStatus": "unpaid",
    "totalAmountLeftToPay": 1,
    "canceled": true
  }
}

Errors

No errors of its own are known for this endpoint.

Errors nearly every request can meet are listed under Errors.