Libraries tagged by cross_rates

launchdarkly/api-client-php

3 Favers
191636 Downloads

This documentation describes LaunchDarkly's REST API. To access the complete OpenAPI spec directly, use [Get OpenAPI spec](https://launchdarkly.com/docs/api/other/get-openapi-spec). To learn how to use LaunchDarkly using the user interface (UI) instead, read our [product documentation](https://launchdarkly.com/docs/home). ## Authentication LaunchDarkly's REST API uses the HTTPS protocol with a minimum TLS version of 1.2. All REST API resources are authenticated with either [personal or service access tokens](https://launchdarkly.com/docs/home/account/api), or session cookies. Other authentication mechanisms are not supported. You can manage personal access tokens on your [**Authorization**](https://app.launchdarkly.com/settings/authorization) page in the LaunchDarkly UI. LaunchDarkly also has SDK keys, mobile keys, and client-side IDs that are used by our server-side SDKs, mobile SDKs, and JavaScript-based SDKs, respectively. **These keys cannot be used to access our REST API**. These keys are environment-specific, and can only perform read-only operations such as fetching feature flag settings. | Auth mechanism | Allowed resources | Use cases | | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | -------------------------------------------------- | | [Personal or service access tokens](https://launchdarkly.com/docs/home/account/api) | Can be customized on a per-token basis | Building scripts, custom integrations, data export. | | SDK keys | Can only access read-only resources specific to server-side SDKs. Restricted to a single environment. | Server-side SDKs | | Mobile keys | Can only access read-only resources specific to mobile SDKs, and only for flags marked available to mobile keys. Restricted to a single environment. | Mobile SDKs | | Client-side ID | Can only access read-only resources specific to JavaScript-based client-side SDKs, and only for flags marked available to client-side. Restricted to a single environment. | Client-side JavaScript | > #### Keep your access tokens and SDK keys private > > Access tokens should _never_ be exposed in untrusted contexts. Never put an access token in client-side JavaScript, or embed it in a mobile application. LaunchDarkly has special mobile keys that you can embed in mobile apps. If you accidentally expose an access token or SDK key, you can reset it from your [**Authorization**](https://app.launchdarkly.com/settings/authorization) page. > > The client-side ID is safe to embed in untrusted contexts. It's designed for use in client-side JavaScript. ### Authentication using request header The preferred way to authenticate with the API is by adding an `Authorization` header containing your access token to your requests. The value of the `Authorization` header must be your access token. Manage personal access tokens from the [**Authorization**](https://app.launchdarkly.com/settings/authorization) page. ### Authentication using session cookie For testing purposes, you can make API calls directly from your web browser. If you are logged in to the LaunchDarkly application, the API will use your existing session to authenticate calls. Depending on the permissions granted as part of your [role](https://launchdarkly.com/docs/home/account/roles), you may not have permission to perform some API calls. You will receive a `401` response code in that case. > ### Modifying the Origin header causes an error > > LaunchDarkly validates that the Origin header for any API request authenticated by a session cookie matches the expected Origin header. The expected Origin header is `https://app.launchdarkly.com`. > > If the Origin header does not match what's expected, LaunchDarkly returns an error. This error can prevent the LaunchDarkly app from working correctly. > > Any browser extension that intentionally changes the Origin header can cause this problem. For example, the `Allow-Control-Allow-Origin: *` Chrome extension changes the Origin header to `http://evil.com` and causes the app to fail. > > To prevent this error, do not modify your Origin header. > > LaunchDarkly does not require origin matching when authenticating with an access token, so this issue does not affect normal API usage. ## Representations All resources expect and return JSON response bodies. Error responses also send a JSON body. To learn more about the error format of the API, read [Errors](https://launchdarkly.com/docs/api#errors). In practice this means that you always get a response with a `Content-Type` header set to `application/json`. In addition, request bodies for `PATCH`, `POST`, and `PUT` requests must be encoded as JSON with a `Content-Type` header set to `application/json`. ### Summary and detailed representations When you fetch a list of resources, the response includes only the most important attributes of each resource. This is a _summary representation_ of the resource. When you fetch an individual resource, such as a single feature flag, you receive a _detailed representation_ of the resource. The best way to find a detailed representation is to follow links. Every summary representation includes a link to its detailed representation. ### Expanding responses Sometimes the detailed representation of a resource does not include all of the attributes of the resource by default. If this is the case, the request method will clearly document this and describe which attributes you can include in an expanded response. To include the additional attributes, append the `expand` request parameter to your request and add a comma-separated list of the attributes to include. For example, when you append `?expand=members,maintainers` to the [Get team](https://launchdarkly.com/docs/api/teams/get-team) endpoint, the expanded response includes both of these attributes. ### Links and addressability The best way to navigate the API is by following links. These are attributes in representations that link to other resources. The API always uses the same format for links: - Links to other resources within the API are encapsulated in a `_links` object - If the resource has a corresponding link to HTML content on the site, it is stored in a special `_site` link Each link has two attributes: - An `href`, which contains the URL - A `type`, which describes the content type For example, a feature resource might return the following: ```json { "_links": { "parent": { "href": "/api/features", "type": "application/json" }, "self": { "href": "/api/features/sort.order", "type": "application/json" } }, "_site": { "href": "/features/sort.order", "type": "text/html" } } ``` From this, you can navigate to the parent collection of features by following the `parent` link, or navigate to the site page for the feature by following the `_site` link. Collections are always represented as a JSON object with an `items` attribute containing an array of representations. Like all other representations, collections have `_links` defined at the top level. Paginated collections include `first`, `last`, `next`, and `prev` links containing a URL with the respective set of elements in the collection. ## Updates Resources that accept partial updates use the `PATCH` verb. Most resources support the [JSON patch](https://launchdarkly.com/docs/api#updates-using-json-patch) format. Some resources also support the [JSON merge patch](https://launchdarkly.com/docs/api#updates-using-json-merge-patch) format, and some resources support the [semantic patch](https://launchdarkly.com/docs/api#updates-using-semantic-patch) format, which is a way to specify the modifications to perform as a set of executable instructions. Each resource supports optional [comments](https://launchdarkly.com/docs/api#updates-with-comments) that you can submit with updates. Comments appear in outgoing webhooks, the audit log, and other integrations. When a resource supports both JSON patch and semantic patch, we document both in the request method. However, the specific request body fields and descriptions included in our documentation only match one type of patch or the other. ### Updates using JSON patch [JSON patch](https://datatracker.ietf.org/doc/html/rfc6902) is a way to specify the modifications to perform on a resource. JSON patch uses paths and a limited set of operations to describe how to transform the current state of the resource into a new state. JSON patch documents are always arrays, where each element contains an operation, a path to the field to update, and the new value. For example, in this feature flag representation: ```json { "name": "New recommendations engine", "key": "engine.enable", "description": "This is the description", ... } ``` You can change the feature flag's description with the following patch document: ```json [{ "op": "replace", "path": "/description", "value": "This is the new description" }] ``` You can specify multiple modifications to perform in a single request. You can also test that certain preconditions are met before applying the patch: ```json [ { "op": "test", "path": "/version", "value": 10 }, { "op": "replace", "path": "/description", "value": "The new description" } ] ``` The above patch request tests whether the feature flag's `version` is `10`, and if so, changes the feature flag's description. Attributes that are not editable, such as a resource's `_links`, have names that start with an underscore. ### Updates using JSON merge patch [JSON merge patch](https://datatracker.ietf.org/doc/html/rfc7386) is another format for specifying the modifications to perform on a resource. JSON merge patch is less expressive than JSON patch. However, in many cases it is simpler to construct a merge patch document. For example, you can change a feature flag's description with the following merge patch document: ```json { "description": "New flag description" } ``` ### Updates using semantic patch Some resources support the semantic patch format. A semantic patch is a way to specify the modifications to perform on a resource as a set of executable instructions. Semantic patch allows you to be explicit about intent using precise, custom instructions. In many cases, you can define semantic patch instructions independently of the current state of the resource. This can be useful when defining a change that may be applied at a future date. To make a semantic patch request, you must append `domain-model=launchdarkly.semanticpatch` to your `Content-Type` header. Here's how: ``` Content-Type: application/json; domain-model=launchdarkly.semanticpatch ``` If you call a semantic patch resource without this header, you will receive a `400` response because your semantic patch will be interpreted as a JSON patch. The body of a semantic patch request takes the following properties: * `comment` (string): (Optional) A description of the update. * `environmentKey` (string): (Required for some resources only) The environment key. * `instructions` (array): (Required) A list of actions the update should perform. Each action in the list must be an object with a `kind` property that indicates the instruction. If the instruction requires parameters, you must include those parameters as additional fields in the object. The documentation for each resource that supports semantic patch includes the available instructions and any additional parameters. For example: ```json { "comment": "optional comment", "instructions": [ {"kind": "turnFlagOn"} ] } ``` Semantic patches are not applied partially; either all of the instructions are applied or none of them are. If **any** instruction is invalid, the endpoint returns an error and will not change the resource. If all instructions are valid, the request succeeds and the resources are updated if necessary, or left unchanged if they are already in the state you request. ### Updates with comments You can submit optional comments with `PATCH` changes. To submit a comment along with a JSON patch document, use the following format: ```json { "comment": "This is a comment string", "patch": [{ "op": "replace", "path": "/description", "value": "The new description" }] } ``` To submit a comment along with a JSON merge patch document, use the following format: ```json { "comment": "This is a comment string", "merge": { "description": "New flag description" } } ``` To submit a comment along with a semantic patch, use the following format: ```json { "comment": "This is a comment string", "instructions": [ {"kind": "turnFlagOn"} ] } ``` ## Errors The API always returns errors in a common format. Here's an example: ```json { "code": "invalid_request", "message": "A feature with that key already exists", "id": "30ce6058-87da-11e4-b116-123b93f75cba" } ``` The `code` indicates the general class of error. The `message` is a human-readable explanation of what went wrong. The `id` is a unique identifier. Use it when you're working with LaunchDarkly Support to debug a problem with a specific API call. ### HTTP status error response codes | Code | Definition | Description | Possible Solution | | ---- | ----------------- | ------------------------------------------------------------------------------------------- | ---------------------------------------------------------------- | | 400 | Invalid request | The request cannot be understood. | Ensure JSON syntax in request body is correct. | | 401 | Invalid access token | Requestor is unauthorized or does not have permission for this API call. | Ensure your API access token is valid and has the appropriate permissions. | | 403 | Forbidden | Requestor does not have access to this resource. | Ensure that the account member or access token has proper permissions set. | | 404 | Invalid resource identifier | The requested resource is not valid. | Ensure that the resource is correctly identified by ID or key. | | 405 | Method not allowed | The request method is not allowed on this resource. | Ensure that the HTTP verb is correct. | | 409 | Conflict | The API request can not be completed because it conflicts with a concurrent API request. | Retry your request. | | 422 | Unprocessable entity | The API request can not be completed because the update description can not be understood. | Ensure that the request body is correct for the type of patch you are using, either JSON patch or semantic patch. | 429 | Too many requests | Read [Rate limiting](https://launchdarkly.com/docs/api#rate-limiting). | Wait and try again later. | ## CORS The LaunchDarkly API supports Cross Origin Resource Sharing (CORS) for AJAX requests from any origin. If an `Origin` header is given in a request, it will be echoed as an explicitly allowed origin. Otherwise the request returns a wildcard, `Access-Control-Allow-Origin: *`. For more information on CORS, read the [CORS W3C Recommendation](http://www.w3.org/TR/cors). Example CORS headers might look like: ```http Access-Control-Allow-Headers: Accept, Content-Type, Content-Length, Accept-Encoding, Authorization Access-Control-Allow-Methods: OPTIONS, GET, DELETE, PATCH Access-Control-Allow-Origin: * Access-Control-Max-Age: 300 ``` You can make authenticated CORS calls just as you would make same-origin calls, using either [token or session-based authentication](https://launchdarkly.com/docs/api#authentication). If you are using session authentication, you should set the `withCredentials` property for your `xhr` request to `true`. You should never expose your access tokens to untrusted entities. ## Rate limiting We use several rate limiting strategies to ensure the availability of our APIs. Rate-limited calls to our APIs return a `429` status code. Calls to our APIs include headers indicating the current rate limit status. The specific headers returned depend on the API route being called. The limits differ based on the route, authentication mechanism, and other factors. Routes that are not rate limited may not contain any of the headers described below. > ### Rate limiting and SDKs > > LaunchDarkly SDKs are never rate limited and do not use the API endpoints defined here. LaunchDarkly uses a different set of approaches, including streaming/server-sent events and a global CDN, to ensure availability to the routes used by LaunchDarkly SDKs. ### Global rate limits Authenticated requests are subject to a global limit. This is the maximum number of calls that your account can make to the API per ten seconds. All service and personal access tokens on the account share this limit, so exceeding the limit with one access token will impact other tokens. Calls that are subject to global rate limits may return the headers below: | Header name | Description | | ------------------------------ | -------------------------------------------------------------------------------- | | `X-Ratelimit-Global-Remaining` | The maximum number of requests the account is permitted to make per ten seconds. | | `X-Ratelimit-Reset` | The time at which the current rate limit window resets in epoch milliseconds. | We do not publicly document the specific number of calls that can be made globally. This limit may change, and we encourage clients to program against the specification, relying on the two headers defined above, rather than hardcoding to the current limit. ### Route-level rate limits Some authenticated routes have custom rate limits. These also reset every ten seconds. Any service or personal access tokens hitting the same route share this limit, so exceeding the limit with one access token may impact other tokens. Calls that are subject to route-level rate limits return the headers below: | Header name | Description | | ----------------------------- | ----------------------------------------------------------------------------------------------------- | | `X-Ratelimit-Route-Remaining` | The maximum number of requests to the current route the account is permitted to make per ten seconds. | | `X-Ratelimit-Reset` | The time at which the current rate limit window resets in epoch milliseconds. | A _route_ represents a specific URL pattern and verb. For example, the [Delete environment](https://launchdarkly.com/docs/api/environments/delete-environment) endpoint is considered a single route, and each call to delete an environment counts against your route-level rate limit for that route. We do not publicly document the specific number of calls that an account can make to each endpoint per ten seconds. These limits may change, and we encourage clients to program against the specification, relying on the two headers defined above, rather than hardcoding to the current limits. ### IP-based rate limiting We also employ IP-based rate limiting on some API routes. If you hit an IP-based rate limit, your API response will include a `Retry-After` header indicating how long to wait before re-trying the call. Clients must wait at least `Retry-After` seconds before making additional calls to our API, and should employ jitter and backoff strategies to avoid triggering rate limits again. ## OpenAPI (Swagger) and client libraries We have a [complete OpenAPI (Swagger) specification](https://app.launchdarkly.com/api/v2/openapi.json) for our API. We auto-generate multiple client libraries based on our OpenAPI specification. To learn more, visit the [collection of client libraries on GitHub](https://github.com/search?q=topic%3Alaunchdarkly-api+org%3Alaunchdarkly&type=Repositories). You can also use this specification to generate client libraries to interact with our REST API in your language of choice. Our OpenAPI specification is supported by several API-based tools such as Postman and Insomnia. In many cases, you can directly import our specification to explore our APIs. ## Method overriding Some firewalls and HTTP clients restrict the use of verbs other than `GET` and `POST`. In those environments, our API endpoints that use `DELETE`, `PATCH`, and `PUT` verbs are inaccessible. To avoid this issue, our API supports the `X-HTTP-Method-Override` header, allowing clients to "tunnel" `DELETE`, `PATCH`, and `PUT` requests using a `POST` request. For example, to call a `PATCH` endpoint using a `POST` request, you can include `X-HTTP-Method-Override:PATCH` as a header. ## Beta resources We sometimes release new API resources in **beta** status before we release them with general availability. Resources that are in beta are still undergoing testing and development. They may change without notice, including becoming backwards incompatible. We try to promote resources into general availability as quickly as possible. This happens after sufficient testing and when we're satisfied that we no longer need to make backwards-incompatible changes. We mark beta resources with a "Beta" callout in our documentation, pictured below: > ### This feature is in beta > > To use this feature, pass in a header including the `LD-API-Version` key with value set to `beta`. Use this header with each call. To learn more, read [Beta resources](https://launchdarkly.com/docs/api#beta-resources). > > Resources that are in beta are still undergoing testing and development. They may change without notice, including becoming backwards incompatible. ### Using beta resources To use a beta resource, you must include a header in the request. If you call a beta resource without this header, you receive a `403` response. Use this header: ``` LD-API-Version: beta ``` ## Federal and EU environments In addition to the commercial versions, LaunchDarkly offers instances for federal agencies and those based in the European Union (EU). ### Federal environments The version of LaunchDarkly that is available on domains controlled by the United States government is different from the version of LaunchDarkly available to the general public. If you are an employee or contractor for a United States federal agency and use LaunchDarkly in your work, you likely use the federal instance of LaunchDarkly. If you are working in the federal instance of LaunchDarkly, the base URI for each request is `https://app.launchdarkly.us`. To learn more, read [LaunchDarkly in federal environments](https://launchdarkly.com/docs/home/infrastructure/federal). ### EU environments The version of LaunchDarkly that is available in the EU is different from the version of LaunchDarkly available to other regions. If you are based in the EU, you likely use the EU instance of LaunchDarkly. The LaunchDarkly EU instance complies with EU data residency principles, including the protection and confidentiality of EU customer information. If you are working in the EU instance of LaunchDarkly, the base URI for each request is `https://app.eu.launchdarkly.com`. To learn more, read [LaunchDarkly in the European Union (EU)](https://launchdarkly.com/docs/home/infrastructure/eu). ## Versioning We try hard to keep our REST API backwards compatible, but we occasionally have to make backwards-incompatible changes in the process of shipping new features. These breaking changes can cause unexpected behavior if you don't prepare for them accordingly. Updates to our REST API include support for the latest features in LaunchDarkly. We also release a new version of our REST API every time we make a breaking change. We provide simultaneous support for multiple API versions so you can migrate from your current API version to a new version at your own pace. ### Setting the API version per request You can set the API version on a specific request by sending an `LD-API-Version` header, as shown in the example below: ``` LD-API-Version: 20240415 ``` The header value is the version number of the API version you would like to request. The number for each version corresponds to the date the version was released in `yyyymmdd` format. In the example above the version `20240415` corresponds to April 15, 2024. ### Setting the API version per access token When you create an access token, you must specify a specific version of the API to use. This ensures that integrations using this token cannot be broken by version changes. Tokens created before versioning was released have their version set to `20160426`, which is the version of the API that existed before the current versioning scheme, so that they continue working the same way they did before versioning. If you would like to upgrade your integration to use a new API version, you can explicitly set the header described above. > ### Best practice: Set the header for every client or integration > > We recommend that you set the API version header explicitly in any client or integration you build. > > Only rely on the access token API version during manual testing. ### API version changelog Version Changes End of life (EOL) `20240415` Changed several endpoints from unpaginated to paginated. Use the `limit` and `offset` query parameters to page through the results. Changed the [list access tokens](https://launchdarkly.com/docs/api/access-tokens/get-tokens) endpoint: Response is now paginated with a default limit of `25` Changed the [list account members](https://launchdarkly.com/docs/api/account-members/get-members) endpoint: The `accessCheck` filter is no longer available Changed the [list custom roles](https://launchdarkly.com/docs/api/custom-roles/get-custom-roles) endpoint: Response is now paginated with a default limit of `20` Changed the [list feature flags](https://launchdarkly.com/docs/api/feature-flags/get-feature-flags) endpoint: Response is now paginated with a default limit of `20`The `environments` field is now only returned if the request is filtered by environment, using the `filterEnv` query parameterThe `followerId`, `hasDataExport`, `status`, `contextKindTargeted`, and `segmentTargeted` filters are no longer availableThe `compare` query parameter is no longer available Changed the [list segments](https://launchdarkly.com/docs/api/segments/get-segments) endpoint: Response is now paginated with a default limit of `20` Changed the [list teams](https://launchdarkly.com/docs/api/teams/get-teams) endpoint: The `expand` parameter no longer supports including `projects` or `roles`In paginated results, the maximum page size is now 100 Changed the [get workflows](https://launchdarkly.com/docs/api/workflows/get-workflows) endpoint: Response is now paginated with a default limit of `20`The `_conflicts` field in the response is no longer available Current `20220603` Changed the [list projects](https://launchdarkly.com/docs/api/projects/get-projects) return value:Response is now paginated with a default limit of `20`.Added support for filter and sort.The project `environments` field is now expandable. This field is omitted by default.Changed the [get project](https://launchdarkly.com/docs/api/projects/get-project) return value:The `environments` field is now expandable. This field is omitted by default. 2025-04-15 `20210729` Changed the [create approval request](https://launchdarkly.com/docs/api/approvals/post-approval-request) return value. It now returns HTTP Status Code `201` instead of `200`. Changed the [get user](https://launchdarkly.com/docs/api/users/get-user) return value. It now returns a user record, not a user. Added additional optional fields to environment, segments, flags, members, and segments, including the ability to create big segments. Added default values for flag variations when new environments are created. Added filtering and pagination for getting flags and members, including `limit`, `number`, `filter`, and `sort` query parameters. Added endpoints for expiring user targets for flags and segments, scheduled changes, access tokens, Relay Proxy configuration, integrations and subscriptions, and approvals. 2023-06-03 `20191212` [List feature flags](https://launchdarkly.com/docs/api/feature-flags/get-feature-flags) now defaults to sending summaries of feature flag configurations, equivalent to setting the query parameter `summary=true`. Summaries omit flag targeting rules and individual user targets from the payload. Added endpoints for flags, flag status, projects, environments, audit logs, members, users, custom roles, segments, usage, streams, events, and data export. 2022-07-29 `20160426` Initial versioning of API. Tokens created before versioning have their version set to this. 2020-12-12 To learn more about how EOL is determined, read LaunchDarkly's [End of Life (EOL) Policy](https://launchdarkly.com/policies/end-of-life-policy/).

Go to Download


thalidzhokov/exchange-rates-cbrf

11 Favers
2919 Downloads

PHP class for daily exchange rates of the Central Bank of Russia by ISO 4217 alphabetic and numeric codes, with the ruble and cross rates

Go to Download


vectorifyai/guzzle-rate-limiter

6 Favers
5719 Downloads

Guzzle middleware for preventive rate limiting with multi-store support, progressive delays, and cross-process coordination.

Go to Download


codecruz/currency-flow

0 Favers
5 Downloads

Official ECB euro exchange reference rates since 1999: latest, historical, cross rates and conversions, with previous-business-day resolution.

Go to Download


kruegge82/jumingo

0 Favers
41 Downloads

## Introduction > [!WARNING] > **Test request sends real calls.** The *Test request* panel next to every operation calls `https://api.jumingo.com` with the token you enter, so a `POST` creates a real shipment or order in your account. There is no sandbox yet; use read operations such as `GET /v1/shipments` to explore, and keep your token out of shared screens. The token is stored only in your browser. ### About With the JUMiNGO shipping API you import your shipments into your JUMiNGO account from any source, fetch the shipping rates available for them, buy the shipping labels and retrieve tracking data, labels and documents for every shipment you purchased. Its main purpose is to connect your account to e-commerce systems and marketplaces. ### General The API is organised around REST: resource-oriented URLs, JSON request and response bodies, standard HTTP verbs and HTTP status codes. All requests must be made over HTTPS; plain HTTP calls fail. Best-practice usage of the API and the business logic behind it are described in the guides on [developers.jumingo.com](https://developers.jumingo.com/), starting with the [quickstart](https://developers.jumingo.com/#description/quickstart). ### Base URL All paths in this reference are relative to `https://api.jumingo.com`, so the shipments collection is `https://api.jumingo.com/v1/shipments`. ### Authentication Every request needs a credential of your JUMiNGO account: a **personal access token** (recommended) or the **legacy API key**. A request without either is answered with `401` and `{"message": "No API token provided"}`. #### Personal access token (recommended) Enable the customer API under [Connections](https://www.jumingo.com/de-de/users/connections/create/8), then create tokens under [My account › API tokens](https://www.jumingo.com/de-de/users/my-account/api-tokens). A token looks like `jum_` followed by 96 hexadecimal characters and is sent as a Bearer token: ``` Authorization: Bearer jum_INSERT_YOUR_TOKEN ``` Each token has a name and a scope. A **Read** token may only call `GET` operations; a `POST`, `PUT`, `PATCH` or `DELETE` with it is answered with `403`. A **Read & write** token may call every operation. You can create several tokens (one per integration), rotate one (new secret, same name and scope) and revoke it at any time; the secret is shown once when the token is created. An unknown, revoked or expired token is answered with `401`, e.g. `{"message": "Invalid API token"}`. #### API key (legacy) The API key shown under Connections still works in the `X-AUTH-TOKEN` header: ``` X-AUTH-TOKEN: INSERT_YOUR_API_KEY ``` It is a single unscoped key that cannot be rotated. **The API key is deprecated and stops working on 1 July 2027.** Switch your integration to a personal access token before that date. A wrong key is answered with `401` and `{"message": "Invalid credentials."}`. ### HTTP status codes Codes in the `2xx` range mean success, `4xx` an error on the client side (a missing parameter, a validation error, a resource that does not exist or that belongs to another account) and `5xx` an error on our side. HTTP status code | Meaning ---------------- | ------- 200, 201, 204 | Everything worked. Creating operations answer `201`, deleting ones `204`. 400 | The request was rejected. Invalid input comes with a `violations` list, see below. 401 | No valid API key was provided or the account is disabled. 403 | You are not allowed to call this endpoint. 404 | The resource does not exist, or it belongs to another account. 429 | The rate limit of the endpoint is used up. Only the access point search is limited today. 500, 502, 503, 504 | Something went wrong on our side. Contact support if it persists. ### Error responses Every error except `401` is a [RFC 7807](https://www.rfc-editor.org/rfc/rfc7807) problem object (`Content-Type: application/problem+json`) with `title`, `detail`, `status` and `type`. Input validation errors (`400`) additionally carry a `violations` array with one entry per invalid field: ```json { "title": "An error occurred", "detail": "shipmentId: This value should not be blank.", "status": 400, "type": "/validation_errors/0=c1051bb4-d103-4f74-8988-acbcafc7fdc3", "violations": [ {"propertyPath": "shipmentId", "message": "This value should not be blank.", "code": "c1051bb4-d103-4f74-8988-acbcafc7fdc3"} ] } ``` Messages are returned in the language of your account. ### Dates and times Values you send (`pickupDate`, `deliveryDate`, `order_date`, …) are `string ` in [RFC 3339](https://www.rfc-editor.org/rfc/rfc3339#section-5.6) format, e.g. `2026-11-11T16:11:52Z`; `string ` values are `YYYY-MM-DD`. Timestamps the API returns are **not** RFC 3339. They come in two shapes, named in this reference by the schema of the field: * `LocalDateTime` — `YYYY-MM-DD hh:mm:ss` in the Europe/Berlin time zone (CET/CEST), e.g. `2026-10-21 10:40:31`. Used for `created`, `last_modified`, `modified` and `paymentDate` of shipments and orders. * `MidnightDateTime` — `YYYY-MM-DDThh:mm:ssZ` where only the date part is meaningful, e.g. `2026-10-21T02:00:00Z`. Used for `created` and `modified` of connections and the delivery dates of a rate. Dates nested in a shipment's `dates` object are pre-formatted for display in the language of the account. ## Quickstart Five calls take a shipment from your system to a printable label: create the shipment, fetch its rates, assign one, pay, download the documents. Everything below runs with `curl`; the *Test request* panel next to each operation in the reference does the same from the browser. To work in Postman instead, import the collection and the environment from the *Downloads* menu at the top of this page, select the environment and paste your token into `bearerToken`. > [!NOTE] > There is no sandbox. The calls go to your live account, but nothing is charged before `POST /v1/orders`: create, rate, change and delete as many drafts as you like. Buy the first label by hand and keep the purchase step out of your automation until the integration is verified (see the [go-live checklist](#description/go-live-checklist)). ### 1. Get a token 1. Sign in to your JUMiNGO account and enable the customer API under [Connections](https://www.jumingo.com/de-de/users/connections/create/8). 2. Open [My account › API tokens](https://www.jumingo.com/de-de/users/my-account/api-tokens) and create a token with the scope **Read & write**. Ordering a label is a write. 3. Copy the token now. It is shown once; later you can only rotate or revoke it. Export it for the calls below: ```shell export JUMINGO_TOKEN=jum_INSERT_YOUR_TOKEN ``` ### 2. Create the shipment A domestic parcel from Berlin to Neuss. `details.email` is the e-mail address of your JUMiNGO account (on creation the API sets it to the address of the token's account whatever you send), `reference_number` is your own order number and is printed on the label by most carriers. ```shell curl -X POST https://api.jumingo.com/v1/shipments \ -H "Authorization: Bearer $JUMINGO_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "from_address": { "company": "Test Corp.", "name": "John Doe", "street": "Kurfürstendamm 21", "zip": "10719", "city": "Berlin", "country": "DE", "phone": "+493012345678" }, "to_address": { "name": "Jane Roe", "street": "Markt 2", "zip": "41460", "city": "Neuss", "country": "DE" }, "details": { "content_description": "T-shirts", "value_amount": 200, "value_currency": "EUR", "email": "[email protected]", "reference_number": "ORDER-10482", "packaging_type": "parcel" }, "packages": [ { "weight": 2.4, "length": 40, "width": 30, "height": 20 } ] }' ``` ```json { "shipment_id": "s_fb1bc92aba1c4d70a3eaa44d687ae179", "warnings": { "messages": [], "count": 0 } } ``` Keep the `shipment_id`; every later call refers to it. See [Shipments](#description/shipments) for every field and its rules. ### 3. Fetch the rates ```shell curl -X POST https://api.jumingo.com/v1/shipment-rates \ -H "Authorization: Bearer $JUMINGO_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "shipmentId": "s_fb1bc92aba1c4d70a3eaa44d687ae179", "packagingTypeId": 7, "filterData": { "timeMin": 0, "timeMax": 1440 }, "settings": { "mode": "m" } }' ``` The response lists one entry per bookable carrier product in `tariffs[]`. For each one read `shipper_tariff_id`, `name`, `price_brutto`, `shippingType` (`1` = collected by a driver, `2` = drop-off at a parcel shop) and the permitted pickup window in `dates.pickup`. Details are in [Rates and pickup](#description/rates-and-pickup). ### 4. Assign the rate Write the chosen tariff onto the shipment. For a pickup rate keep the window inside `dates.pickup` of that tariff; for a drop-off rate (`shipping_type: "shop"`) send both times as `00:00:00`. ```shell curl -X PATCH https://api.jumingo.com/v1/shipments/s_fb1bc92aba1c4d70a3eaa44d687ae179 \ -H "Authorization: Bearer $JUMINGO_TOKEN" \ -H "Content-Type: application/merge-patch+json" \ -d '{ "rate": { "shipper_tariff_id": "15", "shipping_type": "pickup", "pickup_date": "2026-11-20", "pickup_min_time": "10:00:00", "pickup_max_time": "18:00:00" } }' ``` The response is the full shipment. Its `status` must now be `ready`; a shipment in `missing_data` cannot be ordered, and `import_messages_text` tells you which field is missing or invalid. Fix it with another `PATCH`. Read the pickup date and times back from the response: a date the carrier cannot serve is moved to the next possible day instead of being rejected. ### 5. Check the price and buy `POST /v1/cart/total` returns the price you are about to pay and, in `paymentMethods`, the payment methods your account may use. Pay with one of them. ```shell curl -X POST https://api.jumingo.com/v1/cart/total \ -H "Authorization: Bearer $JUMINGO_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "shipmentIds": ["s_fb1bc92aba1c4d70a3eaa44d687ae179"] }' curl -X POST https://api.jumingo.com/v1/orders \ -H "Authorization: Bearer $JUMINGO_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "shipmentIds": ["s_fb1bc92aba1c4d70a3eaa44d687ae179"], "method": "rechnung" }' ``` ```json { "success": true, "orderNumber": "2611207EKN", "shipmentIds": ["s_fb1bc92aba1c4d70a3eaa44d687ae179"], "message": null, "...": "..." } ``` A rejected order is an error response (`400`, the reason in `detail`) and nothing is charged. Store the `orderNumber`. Payment methods and the SEPA variant are explained in [Orders, payment and documents](#description/orders-payment-and-documents). ### 6. Download the label Label creation runs in the background and usually takes a few seconds. Poll the documents of the order until `labels` has an entry for your shipment, then decode its Base64 `file`, or download the PDF directly with the document's `reference`: ```shell curl https://api.jumingo.com/v1/orders/2611207EKN/documents \ -H "Authorization: Bearer $JUMINGO_TOKEN" ``` ```json { "labels": { "s_fb1bc92aba1c4d70a3eaa44d687ae179": { "name": "L-2611207EKN-1.pdf", "type": "label", "reference": "2611207EKN-1", "file": "JVBERi0xLjQK..." } }, "...": "..." } ``` ```shell curl -o label.pdf https://api.jumingo.com/v1/orders/2611207EKN/file/label/2611207EKN-1 \ -H "Authorization: Bearer $JUMINGO_TOKEN" ``` From here on, `GET /v1/shipments/{uuid}` carries the carrier's tracking in `tracking`; see [Tracking](#description/tracking). ## Guides ### Shipments A shipment is one consignment from one sender to one recipient with one or more packages. `POST /v1/shipments` creates it as a draft and returns its id (`s_` followed by 32 hex characters) plus a `warnings` object. Create the draft without a rate and assign one afterwards: which rates exist depends on the addresses and the package data. The minimum request is `from_address`, `to_address`, `details` and at least one entry in `packages`. The reference lists every field with its type; the rules that are not visible from the types follow here. #### How the API validates A draft is allowed to be incomplete, so creation rejects less than you may expect. Three things can happen to a value that breaks a rule: Problem | Result ------- | ------ Wrong type or malformed value: a non-numeric weight, a fractional dimension, an invalid e-mail address, an unknown country, currency or packaging type, a wrong date or time format | `400` with the fields in `violations`. Nothing is created. Text longer than the field allows | The shipment is created, the text is cut to the limit and `warnings` lists each shortened value. A required field is missing or a number is out of range | The shipment is created in status `missing_data`; the invalid value is dropped and `import_messages_text` names the gap. Neither an error nor a warning is returned. So a `201` does not mean the shipment is complete: read `warnings` from the response and the `status` of the shipment before you go on. #### Addresses `from_address` and `to_address` share one structure. Field | Rule ----- | ---- `name` | Required. First and last name of the contact, up to 35 characters. `company` | Up to 35 characters. Some tariffs ship only between companies (`from_company_only`, `to_company_only` on the tariff) or only to private addresses. `street`, `street2` | `street` is required and carries street and house number; both up to 35 characters. `zip` | Required when the country uses postal codes, must be absent when it does not. The rate response flags such countries with `post_code_free: 1` in `countries[]`. `city` | Required, up to 30 characters. `state` | Required for US, CA and VN. US and Canadian states are the two-letter abbreviation (`NY`, `ON`), Vietnamese provinces the full ISO 3166-2 code (`VN-SG`). Do not send it for other countries. `country` | Required, ISO 3166-1 alpha-2 code (`DE`, not `Germany`). `phone` | Up to 35 characters. Required by tariffs with `from_phone_number_required` or `to_phone_number_required`. `settings.email` | On `to_address`: the recipient's e-mail address for carrier notifications and customs. Some international tariffs require it. #### Details Field | Rule ----- | ---- `content_description` | Up to 35 characters, printed on the label and used for customs. Needed for international shipments; use the content of the first customs line item there. `value_amount` | Integer, the goods value of the whole shipment. Needed for international shipments other than documents, where it should equal the sum of the customs line items. `value_currency` | ISO 4217 code for `value_amount`. The customs invoice carries its own `currency`. `email` | The e-mail address of your JUMiNGO account, not the recipient's. On creation the API sets it to the address of the token's account; on `PUT` send it again, because `PUT` replaces all details. `reference_number` | Your own reference, e.g. the shop order number, up to 35 characters. Printed on the label by most carriers and found by the `search` parameter of the list endpoints. `email_tracking`, `email_label_copy` | E-mail addresses that receive the tracking link or a copy of the label when the label is created. Set them before you order. `packaging_type` | One of the types below, for every package of the shipment. Omitted means `parcel`. `hs_tariff_number` | Customs tariff number of the main goods; needed for international shipments other than documents. `extra_insurance_value`, `extra_insurance_type` | Extra transport insurance; always sent together. See [Customs, insurance and export](#description/customs-insurance-and-export). `export_license`, `extra_export_license_number` | Buy the export declaration with the shipment, or pass the number of your own. See the same guide. `insurance_amount`, `insurance_currency` | Internal fields. Do not send them; use `extra_insurance_value`. `settings.use_commercial_invoice` | `true` when your own commercial invoice replaces the JUMiNGO proforma invoice for customs. #### Packages and label format `packages[]` needs at least one entry. Each has `weight` in kg (0.1 to 9,999,999) and `length`, `width`, `height` in whole cm (1 to 99,999); the dimensions decide which tariffs are available and whether volumetric weight applies (`calculate_volume_weight` and `volume_weight_factor` on the tariff, usually 5000). `label_format` (`A4` or `A6`) sits on the shipment, not on the package, and overrides the account default. #### Packaging types All packages of a shipment share the packaging type. The id is what `POST /v1/shipment-rates` takes as `packagingTypeId`. Value | Id | Description ----- | -- | ----------- `parcel` | 7 | A stackable cardboard box. The default. `document` | 1 | Documents. No proforma invoice is created; an international document shipment must be free of duty. `bulk` | 9 | Bulky, unshaped items that need special handling: bags, wooden boxes, buckets, canisters, items with protruding parts. `pallet` | 10 | Euro or one-way pallet, stackable, movable with a standard fork lift. `tires` | 11 | Tyres without a carton, foil-wrapped only. `suitcase` | 14 | A suitcase sent as its own packaging. No compensation claim in case of damage. `n_s_pallet` | 15 | Non-stackable pallet, e.g. a conical load. #### Domestic, EU and international Type | Definition | Extra data ---- | ---------- | ---------- Domestic | Origin country equals destination country. | None beyond the base fields. EU | Both countries are EU members (AT BE BG CY CZ DE DK EE ES FI FR GR HR HU IE IT LT LU LV MT NL PL PT RO SE SI SK). | None beyond the base fields. International | Origin or destination is a country outside the EU customs area; the rate response flags those with `tax_free` in `countries[]`. | `customs_invoice` with currency, export reason and line items; `value_amount`, `content_description`, `hs_tariff_number`. Not for packaging type `document`. The recipient's e-mail address when the chosen tariff asks for it. #### Connections Shipments imported from a shop or marketplace carry a `connection` object with the connection id and the order data. Its `validation_mode` (`strict` or `lax`) is recorded with the shipment and does not change how the request is validated: every creation follows the rules under [How the API validates](#description/shipments) above. The `/v1/connections` endpoints themselves exist for plugin developers; an integration of your own account creates shipments directly. #### Change or delete a draft Call | Behaviour ---- | --------- `PATCH /v1/shipments/{uuid}` | Merges the fields in the body into the shipment and keeps the rest; packages are merged by their position in the list. Also assigns the rate. One exception: `label_format` falls back to the account default unless you send it again. `PUT /v1/shipments/{uuid}` | Replaces `details`, `packages`, the rate and `label_format` with the body: what you omit there is lost, and without a `rate` the shipment goes back to `missing_data`. Addresses, `customs_invoice` and `connection` are kept when omitted. `DELETE /v1/shipments/{uuid}` | Deletes the draft, `204` without a body. Both `PATCH` and `PUT` also accept `billing_address`. Only unpaid shipments can be changed or deleted; once a shipment is part of an order the API rejects all three calls. `update_ordered_delivery_address_allowed` belongs to a function of the JUMiNGO web app, and the API has no call for changing the address of an ordered shipment. When you change addresses, packages or the packaging type, the API requests the assigned rate again: if it is still available it stays assigned with its new price, otherwise it is removed and the shipment becomes `missing_data`. Check `status` and the price after every change. #### Status lifecycle Status | Meaning ------ | ------- `missing_data` | Data is missing or no rate is assigned. The shipment cannot be ordered; `import_messages_text` names the gaps. `ready` | Complete, with a valid rate. The status to order from. `in_progress` | A background operation is running, e.g. the bulk rate selection. `import_progress_status` names the step; do not edit until it is finished. `completed` | Ordered. The label is being created or exists, and the carrier has not scanned the parcel yet (tracking `new` or `notfound`). No longer editable. `in_transit` | On its way (tracking `transit`). `in_delivery` | Out for delivery, or ready for collection by the recipient (tracking `pickup`). `exception` | Needs attention: the carrier reported a problem, stopped reporting, or the parcel waits at a parcel shop (tracking `exception`, `expired`, `parcel_shop`). Read `tracking.data.status` to tell them apart. `undelivered` | A delivery attempt failed (tracking `undelivered`). `delivered` | Delivered. Stop polling. `archived` | Moved to the archive in the account. Up to the order, `status` is the draft state. Once the shipment is ordered it is derived from the tracking state, as the table shows; the [tracking guide](#description/tracking) lists the tracking values. `import_status` is the stored draft state: it equals `status` for `missing_data`, `ready`, `in_progress` and `archived` and stays `completed` after the order, so read `status`. A cancelled shipment has `status: null` and `tracking: null`; treat a `null` status as cancelled. `picked_up` is `false` on every shipment until the tracking shows the parcel moving, so on its own it does not mean a missed pickup. `pickup_status` tracks the re-scheduling of a missed one: `0` none, `1` re-schedule e-mail sent, `2` second pickup scheduled, `3` support informed after a failed second pickup, `4` a new pickup was requested and support arranges it with the carrier. ### Rates and pickup A rate is one carrier product with a price, a transit time and constraints, valid for one concrete shipment. Every rate has a `shipper_tariff_id`; whether that id is bookable for a shipment depends on its addresses, packages and packaging type, so fetch the rates per shipment instead of caching a tariff list. #### Fetch the rates `POST /v1/shipment-rates` takes the `shipmentId` and returns every tariff JUMiNGO can offer for it. Field | Rule ----- | ---- `shipmentId` | Required. A draft in your account. `settings.mode` | Required. `m` for the normal request: the same result as the shipping calculator on jumingo.com, Same Day products included. `single` for one tariff, which then needs `settings.tariffId`; the result is then in `tariff` and `tariffs[]` stays empty. `packagingTypeId` | Send the id of the shipment's packaging type, listed under [Shipments](#description/shipments). It filters the result, and when omitted it is `7` (parcel) whatever the shipment's own type is. `pickupDate`, `pickupDateMode` | The day the shipment is to be sent, RFC 3339. `exact` returns only pickup rates that can still be collected on that day; the default `flex` also returns later ones. `deliveryDate` | Rates whose earliest possible delivery is after this date are left out. `filterData.timeMin`, `filterData.timeMax` | The pickup window you can offer, in minutes after midnight: `0` to `1440` is the whole day. Pickup rates that cannot collect inside it are left out. Send both whenever you send `filterData`. `filterData.priceMax` | Price ceiling, compared with the gross price. `filterData.options[]` | `1` no printer required, `3` pickup today, `4` flexible pickup time, `5` private addresses possible, `6` insurance bookable, `7` tracking available. The fields of a `tariffs[]` entry you will use most: Field | Meaning ----- | ------- `shipper_tariff_id` | The value to write into `rate.shipper_tariff_id`. `shippingType` | `1` collected by a driver, `2` drop-off at a parcel shop. `name` | The carrier product, e.g. `UPS EXPRESS SAVER ®`. Show it to your users. `price_netto`, `price_brutto` | The price for this shipment; `tax_free` and `tax_rate` explain the tax treatment. `transit_time_min`, `transit_time_max`, `delivery_time_until` | Transit time in working days and the latest delivery time of day. `printer_required` | `1` when the sender prints the label. `from_company_only`, `to_company_only`, `from_private_only`, `to_private_only` | Address restrictions. A `to_company_only` rate fails for a private delivery address. `from_phone_number_required`, `to_phone_number_required`, `hs_tariff_number_required` | Fields the shipment must carry before this rate can be bought. `calculate_volume_weight`, `volume_weight_factor` | Whether volumetric weight applies and the divisor, usually 5000. `is_insurable_product`, `is_trackable_product` | Whether extra insurance and tracking are available. `dates.pickup` | The permitted pickup window and its minimum length, see below. Outside `tariffs[]` the response carries `countries[]` with `post_code_free` and `tax_free` per country, the pickup-country holidays, the insurance options and the export declaration price. Read them from the response rather than keeping your own lists. #### Assign a rate Write a `rate` object onto the shipment with `PATCH /v1/shipments/{uuid}`. Field | Rule ----- | ---- `shipper_tariff_id` | A tariff id from the rate response of this shipment. `shipping_type` | `pickup` or `shop`, matching `shippingType` `1` or `2` of the tariff. `pickup_date` | `YYYY-MM-DD`, the collection or drop-off day. A date in the past, on a weekend or holiday or after the cut-off is not rejected: the API moves it to the next possible day. `pickup_min_time`, `pickup_max_time` | `hh:mm:ss`, the collection window. The tariff gives `timeFrom` and `timeUntil` as `hh:mm`, so add the seconds. Send both as `00:00:00` for `shop`. Afterwards the shipment is `ready`, or `missing_data` with the reason in `import_messages_text`. The API asks the carrier system for the tariff again when you assign it and stores what comes back, so read the pickup date and times from the response instead of assuming yours were kept. A shipment whose pickup date has passed cannot be ordered; its `dates_in_the_past` flag is then `true`. #### Pickup rules A pickup rate includes collection at `from_address`. Its limits are readable from `dates.pickup` of the tariff: 1. **Minimum window.** `pickup_max_time` minus `pickup_min_time` is at least `pickupTimeMinPeriodMinutes`. A shorter window removes the rate and the shipment becomes `missing_data`. 2. **Earliest and latest time.** Stay between `timeFrom` and `timeUntil`. A window that reaches beyond them can be cut to the permitted range without an error; one that lies outside removes the rate. 3. **Cut-off and holidays.** `min_pickup_date` is the first day a collection is still possible; after the carrier's cut-off the earliest pickup is the next working day, and the pickup-country holidays are returned with the rates. A drop-off rate (`shop`) needs no driver: the sender hands the parcel in at a parcel shop. `POST /v1/carrier/access-points-search` lists the carrier locations near an address. `carrierCodes` and `onlyOpen` are required; `countryCode`, `radius` (km), `city`, `postCode`, `street` and `state` describe the place. What else is needed depends on the carrier (UPS and DPD need `city`, GLS needs `postCode`), and a missing value is reported in `errors[]` of a normal response, not as an error status. The endpoint is limited to 150 calls per account in 24 hours, so cache the result per address. #### Select the cheapest rate automatically For imports where no one picks a rate, `POST /v1/shipments/cheapest` chooses and assigns one for a list of shipments. > [!WARNING] > The call is asynchronous. It answers `200` with an empty body and does the work in the background: the shipments go to `in_progress` with `import_progress_status: get_rates`, then to `ready` (rate assigned) or `missing_data` (no matching rate). Poll `GET /v1/shipments/{uuid}` until they leave `in_progress`, with a timeout: a shipment whose background job failed can stay in progress. Shipment ids that are not in your account are skipped without an error. ```shell curl -X POST "https://api.jumingo.com/v1/shipments/cheapest?sort=cheapest&shippingType=1" \ -H "Authorization: Bearer $JUMINGO_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "shipmentIds": ["s_ca213cb9368c412291b8441c90c95592"], "rateInput": { "pickupDate": "2026-11-20T00:00:00Z", "deliveryDate": "2026-11-24T00:00:00Z", "settings": { "mode": "m" } } }' ``` The query parameters narrow the choice. A value the API does not recognise is ignored, not rejected, so verify the outcome on the shipment. Parameter | Values --------- | ------ `sort` | `fastest` selects the earliest delivery; anything else, including no parameter, selects the cheapest. `shippingType` | `1` pickup, `2` shop. Numeric only. `tariffType` | `Same Day`, `Express`, `Economy`, `Standard`, exactly as written. `carrier` | A carrier name such as `UPS` or `DHL Express`, matched without regard to case. Only carriers enabled for bulk rate selection qualify. Of `rateInput`, the API applies `filterData` and `settings` (use `mode` `m`); the pickup and delivery dates of the search are the ones stored on each shipment. Still send `pickupDate`, `deliveryDate` and `settings` as in the example: a `rateInput` without the dates makes the background job fail. ### Customs, insurance and export International shipments are cleared by customs in the origin and the destination country, and that process is digital: the carrier receives the invoice data as structured fields, not as a scanned document. Supply the full commercial or proforma invoice in `customs_invoice`, and keep the three label fields in `details` consistent with it: take `content_description` and `hs_tariff_number` from the first line item and set `value_amount` to the sum of all line values. #### Customs invoice Field | Rule ----- | ---- `currency` | Send it with every customs invoice. ISO 4217 code of the invoice and the parcel value, transmitted to the carrier. It may differ from your account currency; the JUMiNGO invoice for the order is still issued in the account currency. `exportReason` | Needed before the shipment can be ordered. `Gift`, `Commercial`, `Personal`, `Return`, `Claim`, `Temporary`, `Relocation` or `Sample`. It drives the customs procedure on both sides: use `Return` for goods going back to the exporter and `Temporary` for goods that will re-enter. A wrong reason is the most common cause of unexpected duty, and for a business account `Commercial` requires a commercial invoice, not the proforma invoice. `invoiceNumber`, `invoiceDate` | Number and date (`YYYY-MM-DD`) of your own commercial invoice; needed when `details.settings.use_commercial_invoice` is `true`. Leave them empty when the JUMiNGO proforma invoice is used. `remarks[]` | Up to three free-text lines printed on the invoice. `lineItems[]` | Required. One entry per distinct article. `useJumingoCommercialInvoice` | `true` lets JUMiNGO generate the commercial invoice from the line items and send it to the carrier; needs `details.settings.use_commercial_invoice: true` and a packaging type other than `document`. `discount`, `shippingCosts`, `insuranceCosts` | Amounts shown on the generated invoice, in the invoice currency. Omitted shipping and insurance costs are taken from the JUMiNGO shipment. Line item | Rule --------- | ---- `content` | Plain description of the goods. Avoid vague wording such as "samples" or "parts". `quantity`, `unitOfMeasurement` | The quantity and its unit: `PCS`, `M`, `M2`, `M3`, `L` or `KG`. The unit has no default; a line item without it is rejected with `400`. `value` | Total net value of the line, not the price per piece. `netWeight` | Total net weight of the line in kg. `hsTariffNumber` | Customs tariff number of this line. `manufacturingCountry` | ISO 3166-1 alpha-2 country of manufacture. `merchantProductId`, `manufacturerProductId`, `standardizedProductId` | Your SKU, the manufacturer's part number and the EAN/GTIN. The first two are required for a B2C import into the EU from a third country when the ordering customer is a business; the shipment's `product_identifiers_required` tells you when. #### Your own customs documents If you issue your own commercial invoice or hold your own export declaration, upload the PDF before you order, so that it travels with the label data to the carrier: ```shell curl -X POST https://api.jumingo.com/v1/shipments/s_fb1bc92aba1c4d70a3eaa44d687ae179/file/upload/commercial-invoice \ -H "Authorization: Bearer $JUMINGO_TOKEN" \ -F "[email protected]" ``` Constraint | Value ---------- | ----- `{type}` | `commercial-invoice`, `export-declaration` or `customs-duty-notice`. An `export-declaration` is not accepted when `details.export_license` is set. Format | A PDF file of up to 10 MB, sent as `multipart/form-data` in the field `file`. Replace | A new upload replaces the earlier file of the same type. Remove | `DELETE` on the same path. Uploaded commercial invoices and export declarations come back in `commercialInvoices` and `exportDeclarations` of the order documents; a customs duty notice is not part of that list. Set `details.settings.use_commercial_invoice: true` so that your invoice replaces the proforma invoice. #### Export declaration For an international shipment collected in Germany an export declaration is mandatory when the invoice total (goods minus discount, plus shipping and insurance costs) reaches the threshold of the invoice currency (1,000 EUR by default) or the total weight of its packages reaches 1,000 kg. Set `details.export_license: true` to buy the declaration from JUMiNGO with the order; the price is `extra_export_license_price_brutto` on the tariff and `export_license_price_brutto` on the shipment. If you already hold a declaration, send its number in `details.extra_export_license_number` instead. #### Extra transport insurance Beyond the carrier's standard liability you can insure the shipment against loss, damage and theft in two variants, `standard` and `premium`. `extra_insurance_value` (a whole amount up to 50,000) and `extra_insurance_type` are always sent together and the insurance is booked with the order. Not every tariff is insurable: check `is_insurable_product`. The surcharge is returned as `extra_insurance_price_netto` and `extra_insurance_price_brutto` on the shipment once a rate is assigned, and `POST /v1/cart/total` sums it in `additionalServicesSeparately`. ### Orders, payment and documents An order is the payment for one or more shipments. `POST /v1/orders` is the only call that costs money; it needs a token with the scope **Read & write**, and every shipment in it must be `ready` with a pickup date that has not passed and a tariff that is still available. If one is not, the whole call answers `400` and nothing is charged. #### Price the cart first `POST /v1/cart/total` takes the `shipmentIds` and an optional `voucherCode` and returns the total with its tax and surcharges, the `paymentMethods` your account may use right now, the full shipments with their insurance and export-declaration prices, and `errorList`, the problems per shipment that would stop the order (`date_in_past`, `time_in_past`, `tariff_not_applied`, `tariff_is_no_longer_available`, `not_ready_status`). A shipment listed there is left out of the total, so an empty `errorList` is part of the check. Call it before every purchase: the price you show is then the price you charge, and you only offer payment methods the account can use. Like every `POST`, it needs a `read_write` token. #### Payment methods Method | Meaning | Available when ------ | ------- | -------------- `rechnung` | Invoice. | Payment on account is enabled for the account. `sammelrechnung` | Collective invoice, issued weekly for all orders of the previous week. | Collective invoicing is enabled for the account; it then replaces `rechnung`. `lastschrift` | SEPA direct debit. The mandate data goes into `data`. | The account is based in Germany, direct debit is enabled and the total is above zero. When the account pays by invoice, `paymentMethods` lists only `rechnung` or `sammelrechnung`; `lastschrift` is listed for accounts without invoice payment. The payment methods of the website (PayPal, card, instant payment) are not offered through the API. If none of the three is enabled, `POST /v1/cart/total` answers `400` with `No payment methods available`: ask support or your key account manager to enable one. ```shell curl -X POST https://api.jumingo.com/v1/orders \ -H "Authorization: Bearer $JUMINGO_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "shipmentIds": ["s_fb1bc92aba1c4d70a3eaa44d687ae179"], "method": "lastschrift", "data": { "accountOwner": "Test Corp.", "iban": "DE27100777770209299700", "bic": "NORSDE51", "agreement": true } }' ``` Field | Rule ----- | ---- `shipmentIds` | Required. Shipments in status `ready`, as described above. `method` | Required. One of the methods returned by the cart total. `voucherCode` | Must be valid for the shipments in the order. `data` | Required for `lastschrift`: `accountOwner`, `iban`, `bic` and `agreement: true` as in the SEPA mandate. The response carries `success`, the `orderNumber` and the `shipmentIds`. A rejected order is an error response (`400`, the reason in `detail`), not `success: false`, and no charge is made. Order numbers are the order date as `YYMMDD` plus four characters. `GET /v1/orders` and `GET /v1/orders/{orderNumber}` return them with a `B-` prefix; remove it before you call the documents and file endpoints, which take the bare number only. #### Retries Once an order has gone through, its shipments are `completed`, so a later `POST /v1/orders` for the same shipments is rejected with `400` rather than charged twice. That protection does not cover requests that overlap: a second request sent while the first is still being processed can answer `success: true` without an `orderNumber`, and two overlapping requests are not reliably kept apart. Never send orders for the same shipments in parallel, and on a timeout do not resend: read the shipments back and check their `order` field, or search the orders with `GET /v1/orders?search=`, before you decide whether the order exists. #### Documents `GET /v1/orders/{orderNumber}/documents` returns every document of the order with the file as a Base64 string in `file`; `GET /v1/orders/{orderNumber}/file/{type}/{name}` streams one of them as a PDF download, with `name` being the `reference` the documents endpoint shows for it, e.g. `2611207EKN-1` for the label of the first shipment. Key | Per | Notes --- | --- | ----- `invoices` | order | The JUMiNGO invoice. With collective invoicing it appears about a week after purchase and the same file covers every order of that week. `confirmations` | order | The order confirmation. `labels` | shipment | Keyed by shipment id, one PDF per shipment with the labels of all its packages. `proformas` | shipment | Only for shipments to or from a country outside the EU customs area; never for packaging type `document` or when your own commercial invoice is used. `commercialInvoices`, `exportDeclarations` | shipment | The documents you uploaded, or the ones JUMiNGO generated or filed for you. `exportCertVat` | shipment | The export certificate for VAT purposes, once the carrier confirms the export. Label and document generation is asynchronous. There is no count for labels: poll until `labels` has an entry for every shipment of the order. For the other documents `invoicesCount`, `proformasCount`, `commercialInvoicesCount` and `confirmationsCount` say how many are expected (`invoicesCount` stays `0` with collective invoicing); compare them with the lists. Poll every 30 to 60 seconds rather than in a loop. Decode and store the files; do not fetch them on every page view. #### Orders `GET /v1/orders` lists the orders of your account, `GET /v1/orders/{orderNumber}` returns one with its shipments and, once they exist, their tracking numbers. The filters are described under [Listing, filtering and pagination](#description/listing-filtering-and-pagination). ### Tracking `GET /v1/shipments/{uuid}` carries the carrier tracking in `tracking` once the shipment has a tracking number (`null` before, and `null` again for a cancelled shipment). Until the carrier answers for the first time only the tracking number, the status and the tracking page are filled. The fields to build on: Field | Meaning ----- | ------- `tracking.data.tracking_number` | The carrier tracking number. `tracking.data.status` | The authoritative tracking state, see below. `tracking.data.steps[]` | The individual scans with date, time, type and location. `tracking.data.carrier` | The carrier with its `code`, `name` and logo (`image`). `tracking.progress.percent` | A coarse progress indicator for your own UI: `0`, `33`, `66` or `100`. It can go back, e.g. on an exception. `tracking.carrierTrackingPage` | A deep link to the carrier's tracking page. Status | Meaning ------ | ------- `new` | The label exists, the carrier has not scanned the parcel yet. `InfoReceived` | The carrier has the shipment data but not the parcel yet. Treat it like `new`. `transit` | On its way. `pickup` | Out for delivery, or ready for collection by the recipient. `parcel_shop` | Waiting at a parcel shop for the recipient. `delivered` | Delivered. Stop polling. `undelivered` | A delivery attempt failed. `exception` | The carrier reported a problem; read the latest step. `notfound` | The carrier does not know the number yet. `expired` | The carrier has not reported for a long time. You can stop polling. Treat a value you do not recognise, or an empty one, as "in progress" rather than failing. The shipment's own `status` is derived from the tracking: `new`, `InfoReceived` and `notfound` give `completed`, `transit` gives `in_transit`, `pickup` gives `in_delivery`, `exception`, `expired` and `parcel_shop` all give `exception`, and `undelivered` and `delivered` keep their names. `delayed` on the shipment is calculated by JUMiNGO, not reported by the carrier: it is `true` when the expected delivery date has passed and the shipment is not delivered. > [!NOTE] > Do not parse the step texts. The `type` and location strings in `steps[]` come straight from the carrier; their wording, language and detail vary by carrier and region and can change at any time. Drive your logic from `tracking.data.status` and show the steps as free text. There are no webhooks yet, so poll: hourly is sufficient for most carriers, and stop once the status is `delivered` or `expired`. To have the tracking link e-mailed, put the recipient's address into `details.email_tracking` before you order; the mail is sent when the label is created. ## Working with the API ### Listing, filtering and pagination `GET /v1/shipments` and `GET /v1/orders` return one page at a time: `page` selects the page (starting at 1) and `itemsPerPage` its size, 10 by default and 100 at most. Iterate until a page comes back with fewer items than requested. Both endpoints return a plain JSON array; there is no envelope with a total count. #### Shipments Parameter | Values --------- | ------ `status` | Default `all`. The lifecycle values `missing_data`, `ready`, `in_progress`, `completed`, `in_delivery`, `in_transit`, `exception`, `undelivered`, `delivered`, `archived`, plus the list views `drafts`, `ordered`, `todo`, `isThirdParty` and the import-progress values below. Several values can be combined with commas; an unknown value returns an empty list, not an error. `importProgressStatus` | `checkout`, `get_rates`, `save_changes`, `delete`, `buy`, `buy_in_progress`: the step of a running bulk operation. `created[before]`, `created[after]` | A date such as `2026-11-20`. Only the day counts: `after` starts at 00:00 and `before` ends at 23:59:59 of that day, whatever time you send. A value that is not a date is ignored. `sort[created]` | `asc` or `desc`. `search` | Full-text search across the shipment: shipment and tracking number, `reference_number`, the addresses and the e-mail addresses. At least three characters; with several words every word must match. `orderNumber` | The shipments of one order. `full_team`, `muid[]` | The shipments of the whole team, or of the given team members. Both need the team permission of your account, otherwise the response is `403`. #### Orders Parameter | Values --------- | ------ `paymentMethod[]` | Exact payment method names, e.g. `rechnung`. `paymentStatus` | `1` unpaid, `0` paid. It covers invoice orders (`rechnung`, `sammelrechnung`); `lastschrift` orders match neither value. `created[before]`, `created[after]` | Date bounds, with the same day rule as for shipments. `sort[created]`, `sort[gross]`, `sort[orderNumber]`, `sort[unpaid]` | `asc` or `desc`. `search` | The same search as for shipments, over the shipments of each order: shipment and tracking number, `reference_number`, pickup code, sender, recipient and billing address, and the tracking and label-copy e-mail addresses. At least three characters. `export` | Marks the response as a file download (`Content-Disposition: attachment`). The content stays in the format you requested. #### Dates in filters and responses Values you send are RFC 3339 (`2026-11-20T00:00:00Z`) or plain dates (`2026-11-20`). Timestamps the API returns are not RFC 3339: `created` and `last_modified` of a shipment and `created`, `modified` and `paymentDate` of an order are `YYYY-MM-DD hh:mm:ss` in the Europe/Berlin time zone (an order that is not paid yet shows the time of your request in `paymentDate`, so read `unpaid` to know whether it is paid), and the dates of connections and rates are `YYYY-MM-DDThh:mm:ssZ` with only the date part meaningful. The *Dates and times* section at the top of this reference names the schema of every such field. ### Tokens and scopes Every v1 request carries exactly one credential: a personal access token in `Authorization: Bearer `, or, for existing integrations, the legacy API key in `X-AUTH-TOKEN`. When both headers are present the Bearer token is used and the key is ignored. The *Authentication* section at the top of this reference shows the headers; this guide covers how to run tokens in production. #### Create and store Tokens are created under [My account › API tokens](https://www.jumingo.com/de-de/users/my-account/api-tokens) after the customer API is enabled under Connections. Each has a name of up to 255 characters and a scope. The secret, `jum_` followed by 96 lowercase hex characters, is shown once; JUMiNGO stores a hash and a short prefix, so a lost token can only be rotated or replaced. An account may hold up to 100 active tokens. A `read_write` token authorises label purchases billed to your account, so treat it like a password: keep it server-side in a secret store, never in browser or app code, never in a repository, never in logs. Issue one token per system (shop, ERP, warehouse, staging) so that you can revoke one without disturbing the others. #### Scopes Scope | Allows ----- | ------ `read` (default) | `GET` only. Any `POST`, `PUT`, `PATCH` or `DELETE` is answered with `403` and the `detail` `This integration token is read-only.`; the operation itself is not carried out. `read_write` | Every operation, including creating shipments and buying labels. The scope is fixed at creation; to change it, create a new token and revoke the old one. Use `read` for jobs that only synchronise tracking or export data: a read-only token cannot spend money. Note that `POST /v1/shipment-rates`, `POST /v1/cart/total` and `POST /v1/carrier/access-points-search` are writes in this sense although they change nothing billable, so the part of your integration that prices shipments needs `read_write` too. #### Lifecycle Event | Behaviour ----- | --------- Revoke | Immediate. Every later call answers `401` with `{"message": "API token has been revoked"}`. Rotate | A new secret for the same token: name and scope are kept, and the old secret stops working the moment the new one is shown (it then answers `Invalid API token`). There is no overlap, so calls fail until the new secret is deployed. To switch without downtime, create a second token, deploy it and revoke the old one. Expiry | Tokens created in the account do not expire; rotate them on your own schedule. An expired token answers `401` with `{"message": "API token has expired"}`. Unknown or malformed | `401` with `{"message": "Invalid API token"}`. A token that does not match the `jum_` shape is rejected before any lookup, so a truncated copy fails fast. Account | If the owning account is deactivated, its tokens answer `401` with `{"message": "API token owner is not available"}`. #### Migrate from the API key The legacy API key stops working on 1 July 2027. 1. Create a token with the scope your integration needs. 2. Replace the header `X-AUTH-TOKEN: ` with `Authorization: Bearer `. Nothing else changes: same base URL, same payloads, same responses. 3. Verify with a cheap read such as `GET /v1/shipments?itemsPerPage=1`. 4. Remove the key from your configuration. ### Errors, limits and troubleshooting The status codes and the error format are described at the top of this reference. A `400` caused by validation lists the failed fields in `violations`, so surface all of them at once instead of the first only; other `400` responses carry the reason in `detail` alone. #### Warnings on shipment creation `POST /v1/shipments` returns a `warnings` object next to the shipment id. A text that is longer than its field allows does not fail the request: it is cut to the limit and listed in `warnings`. Log the warnings and show them to the user before the purchase: a silently shortened address is a failed delivery. Missing fields and out-of-range numbers are not listed there; they leave the shipment in `missing_data` with the reason in `import_messages_text` (see [Shipments](#description/shipments)). #### Rate limits Limits are applied per endpoint and per account. Exceeding one answers `429` with the `detail` `API rate limit exceeded for: `. The response headers `_api_rate_limit_info`, `_api_rate_remaining_info` and `_api_rate_reset_info` carry the limit, the remaining calls and, on a `429`, the time the limit resets as a Unix timestamp. Endpoints without a limit send `0` in all three, so do not read a `0` there as "used up". Endpoint | Limit -------- | ----- `POST /v1/carrier/access-points-search` | 150 calls per account and 24 hours. Cache the access points per address. Other v1 endpoints | No individual cap today. Limits are configuration and can be introduced without a new API version, so handle `429` on every call: back off exponentially with jitter, and never retry `POST /v1/orders` blindly. #### Common failures Symptom | Cause and fix ------- | ------------- `401` on every call | The header is wrong. It is `Authorization: Bearer ` with a capital `B` and one space; the legacy header is `X-AUTH-TOKEN` with the bare key and no `Bearer` prefix. `401 No API token provided` | Neither header arrived, or the scheme is not spelled `Bearer`. `401 Invalid credentials.` | The legacy key in `X-AUTH-TOKEN` is unknown. `401 Invalid API token` | The token is unknown or truncated. Check it in your account and copy it in full. `401 API token has been revoked` | The token was revoked in the account. Create a new one. `401 API token has expired` | The token passed its expiry date. Create a new one. `403` on writes only | The token has the scope `read`. Issue a `read_write` token; the rate, cart-total and access-point calls are `POST` and need it too. `403` with `full_team` | Your account lacks the team permission. No rates returned | The address or package data excludes every tariff. Check the postcode rule of the country, that `state` is set for US, CA and VN only, that `packagingTypeId` is the shipment's packaging type, and that `filterData` carries both `timeMin` and `timeMax`. Shipment `missing_data` after assigning a rate | The tariff is not valid for this shipment or the pickup window breaks a rule. Fetch the rates again and read `dates.pickup`. Cheapest call "did nothing" | It is asynchronous. Poll the shipments until they leave `in_progress`; `missing_data` means no rate matched the filters. Cheapest filter ignored | `shippingType` takes `1` or `2`, `tariffType` is case-sensitive. Unknown values are dropped silently. Order rejected with `Some shipments are missing or have the wrong status!` | A shipment is not `ready`, its pickup date has passed or its tariff is no longer available. `errorList` of `POST /v1/cart/total` names the reason per shipment. Payment method rejected | The method is not enabled for the account. Offer only what `POST /v1/cart/total` returns. Documents still empty | Generation is asynchronous. Poll until `labels` has an entry for every shipment, and compare the other lists with the `*Count` fields. Pickup date changed | A date in the past, on a non-working day or after the cut-off is moved to the next possible day when the rate is assigned. Read the date back from the response and check `min_pickup_date` on the tariff. Order endpoint answers `404` for a number from the order list | The list returns the number with a `B-` prefix; the documents and file endpoints take it without. Address silently shortened | A value was longer than its field allows and was cut on creation. Read `warnings` and keep to the lengths under [Shipments](#description/shipments). Upload rejected | Only a PDF file, only the types `commercial-invoice`, `export-declaration` and `customs-duty-notice`, not while the shipment is `in_progress` or archived, and no `export-declaration` when `details.export_license` is set. ## Go-live checklist Work through this list before you let your integration buy labels on its own. There is no sandbox, so every step runs against your live account; drafts are free, and only the last two items place a chargeable order. Item | What to verify ---- | -------------- Bearer migration | No code path still sends `X-AUTH-TOKEN`. Token handling | Tokens live server-side in a secret store and never appear in logs. One token per system. Scope | Read-only jobs (tracking sync, exports) use a `read` token; only the purchasing path holds `read_write`. Token replacement drill | You have replaced a token once without downtime: second token created and deployed, old one revoked. Domestic shipment | Create, rate, assign, status `ready`, then delete the draft. EU shipment | The same flow with a cross-border EU address pair. International shipment | A full `customs_invoice` with line items; `value_amount` equals the sum of the line values. Postcode-free country | No `zip` for a country with `post_code_free: 1`, and the request is accepted. US, CA and VN addresses | `state` is present for those three countries and absent everywhere else. Multi-package shipment | Several packages, one packaging type, correct total weight. Drop-off rate | A `shop` rate with both pickup times `00:00:00`. Pickup window | The window respects `pickupTimeMinPeriodMinutes` and the cut-off. Bulk rating | If you use `POST /v1/shipments/cheapest`, your code polls to completion and handles `missing_data`. Validation errors | Your code reads every entry in `violations`, every message in `warnings` and the `status` of each shipment it created. Rate limits | `429` is caught and retried with backoff, not treated as a hard failure. Retry safety | No code path calls `POST /v1/orders` twice for the same basket, in parallel or after a timeout, without checking the shipments first. Price check | `POST /v1/cart/total` runs before every purchase and its total is what you show. Document polling | Polling with backoff, a stop condition and an alert if documents never arrive. Tracking polling | Driven by `tracking.data.status`, stopping at `delivered` or `expired`. First live order | One real shipment, bought by hand, label printed and handed to the carrier. Reconciliation | Your records match the JUMiNGO invoice for that first order. ### Glossary Term | Meaning ---- | ------- Shipment | One consignment from one sender to one recipient with one or more packages; id `s_…`. Draft | A shipment that has not been paid for. Editable and deletable. Rate, tariff | A carrier product with price, transit time and constraints, valid for one shipment; `shipper_tariff_id`. Order | A payment covering one or more shipments; order number `YYMMDD` plus four characters. Personal access token | A named, scoped, revocable Bearer credential of one account. Scope | What a token may do: `read` or `read_write`. Access point | A carrier location where a parcel is dropped off or collected. Connection | A link between a JUMiNGO account and a shop or marketplace. Plugin developers only. Proforma invoice | The customs document JUMiNGO generates for an international shipment when you supply no commercial invoice. Export declaration | The customs filing for higher-value or heavy exports from Germany. Volumetric weight | Chargeable weight derived from the dimensions divided by the tariff's `volume_weight_factor`, usually 5000. Cut-off | The latest moment a rate can still be applied for same-day collection. Questions about your integration: write to [[email protected]](mailto:[email protected]) or contact your key account manager.

Go to Download


invoicetronic/php-sdk

0 Favers
295 Downloads

The [Invoicetronic API][2] is a RESTful service that allows you to send and receive invoices through the Italian [Servizio di Interscambio (SDI)][1], or Interchange Service. The API is designed to be simple and easy to use, abstracting away SDI complexity while providing complete control over the invoice send/receive process. It provides advanced features as encryption at rest, multi-language pre-flight invoice validation, multiple upload formats, webhooks, event logging, client SDKs, and CLI tools. For more information, see [Invoicetronic website][2] ## Before you start For the full integration guide, tutorials, SDKs and quickstarts, see the **[Documentation](https://invoicetronic.com/en/docs/)**. A few cross-cutting topics worth knowing before integrating: - **[Prerequisites](https://invoicetronic.com/en/docs/prerequisites/)** — what you need to start in Sandbox and what's required to move to production. - **[API Keys](https://invoicetronic.com/en/docs/apikeys/)** — how `ik_live_` and `ik_test_` keys select the environment. - **[Restricted Keys](https://invoicetronic.com/en/docs/sub-keys/)** — keys limited to some companies and permissions, managed from the Dashboard or through `/subkey`. - **[Sandbox](https://invoicetronic.com/en/docs/sandbox/)** — free test environment that mirrors the live workflow, with no credits consumed. - **[Rate Limiting](https://invoicetronic.com/en/docs/ratelimiting/)** — per-second, per-minute and per-day limits; how to handle `429 Too Many Requests`. - **[Pagination](https://invoicetronic.com/en/docs/pagination/)** — `page` and `page_size` parameters and the `Invoicetronic-Total-Count` response header. - **[CORS](https://invoicetronic.com/en/docs/cors/)** — calling the API from the browser; allowed origins are configured per key. - **[Webhooks](https://invoicetronic.com/en/docs/webhooks/)** — real-time event notifications with HMAC-SHA256 signature validation. - **[Localization](https://invoicetronic.com/en/docs/accept-language/)** — use the `Accept-Language` header to receive error messages in Italian, English or German. [1]: https://www.fatturapa.gov.it/it/sistemainterscambio/cose-il-sdi/ [2]: https://invoicetronic.com/

Go to Download


azaharizaman/nexus-tax

0 Favers
18 Downloads

Framework-agnostic tax calculation engine with multi-jurisdiction support, temporal rate resolution, hierarchical tax structure, reverse charge mechanism, economic nexus determination, partial exemptions, and place-of-supply rules for cross-border services

Go to Download


max-shevchenko/yandex-exchange-rates

0 Favers
124 Downloads

Tools for Yandex exchange rates

Go to Download


andrey-mashukov/crossrates

0 Favers
44 Downloads

Cross rates currencies

Go to Download


nowo-tech/currency-kit-bundle

0 Favers
2 Downloads

Currency conversion at reference rates for Symfony: ECB euro reference rates stored by date, decimal-string amounts, cross rates through the euro, manual rates, console sync with a Scheduler bridge and a Twig filter. FrankenPHP worker safe.

Go to Download


nathan-emanuel/congressus

1 Favers
5 Downloads

# Introduction The Congressus API allows you to interact with your Congressus administration. The API is RESTful and uses JSON to transport information. This documentation aims to get you started with your first requests. Make sure to read this introduction completely to know all aspects of our API. ## REST basics A REST API describes the resources you can access in a clearly defined path structure. This documentation contains a reference for each resource in the API. Before you can use these resources, you need to know the basics of accessing the Congressus REST API. **Paths and versioning** The Congressus API resides on the following paths: https://api.congressus.nl/ `version` / `resource_path` ? `query_params` - The `version` part of the path indicates the version of the API you want to use. At this moment version v30 is the current version. By pointing to a specific version, we can make sure you always can expect equal behaviour from our API. - The `resource_path` part indicates the path of the resource you want to access. Specific paths to resources can be found in the API documentation. Examples of resource paths are: /members to retrieve all members or /member/ `obj_id` /statuses to create new member status for a member. - The `query_params` contains all filtering, ordering and pagination information. ## Authentication The current authentication flow present at Congressus API is by the use of the Bearer Token suggested by OAuth 2.0. To interact with the Congressus API, you must authenticate by supplying the header `Authorization` with the value `Bearer {access_token}`. **How do I get an API key?** You can create new apps and API keys in Congressus Manager through [this link](https://manager.congressus.nl/settings/integrations/apps). ## Requests There are different approaches for making requests to our API. The command line tool [curl](https://curl.se/) is easy and fast for testing our API. When you want to integrate the API into your own software, you can choose to use a general purpose REST library or to [create your own API client library](https://github.com/OpenAPITools/openapi-generator) based on our OpenAPI specs. ## Responses Congressus uses conventional HTTP response codes to indicate success or failure of an API request. In general, codes in the 2xx range indicate success, codes in the 4xx range indicate an error that resulted from the provided information (e.g. a required parameter was missing or input data was invalid), and codes in the 5xx range indicate an error with the Congressus API. ## Pagination Endpoints returning a list of entities, are paginated to prevent large responses. To control the pagination, you can use the `page` and `page_size` parameters. page determines which page to return (default: 1), page_size controls the amount of entities to return (default: 25, maximum: 100). Each paginated response contains the following information: - `has_prev` bool - `prev_num` int with previous page number - `has next` bool - `next_num` int with next page number - `data` list with results on current page - `total` int with total number of results ## Filtering Most list endpoints support filtering to get a subset of the available information. Filtering is done using the query. For some filter attributes, filtering for multiple options is supported by adding the `=` multiple times. E.g. `category_id=1&category_id=2`. ### Filtering on period For some resources, a period filter is available. This filter is used to get a subset of the available information within a certain period. The period filter is used by adding the `period_filter` query parameter to the endpoint. **Absolute periods** Absolute periods are defined by exact dates. The format is `YYYY(MM(DD))`. E.g. `2024` or `202402` or `20240227`. A different end date can be given by adding `..` and the end date. E.g. `202402..202403` for the period February 2024 to March 2024. **Relative periods** Relative periods are defined by a period in the past or future. Multiple formats are supported: - `today` - today's date - `yesterday` - yesterday's date - `tomorrow` - tomorrow's date - `(last/this/next)_(day/month/quarter/half_year/year)` - e.g. `last_month` or `next_year` or `this_quarter` - `last_x_days` - e.g. `last_7_days` or `last_14_days` ## Ordering Most list endpoints support ordering on one or more attributes. The order is defined using the `order=` parameter in the query part of the endpoint. Multiple columns can be used for ordering, delimited by a comma. E.g. `order=lastname,initials,first_name`. Each attribute used in the order parameter could be extended with a sort property `:`. E.g. `order=lastname:desc`. The following properties are supported throughout our API: - ```:asc``` ASC NULLS LAST (default) [comment]: (- ```:asc_nulls_last``` ASC NULLS LAST) [comment]: (- ```:asc_nulls_first``` ASC NULLS FIRST) - ```:desc``` DESC NULLS FIRST [comment]: (- ```:desc_nulls_last``` DESC NULLS LAST) [comment]: (- ```:desc_nulls_first``` DESC NULLS FIRST) ## Searching and location filtering For some resources a dedicated /search endpoint is available, which is optimized for searching large datasets. We use an Elasticsearch database to deliver these results. The schema for these resources is often a concise version of the schema used for regular endpoints, but always contains the primary key (obj_id). If you need the full schema for a resource found through /search, you can perform an additional call to the GET / endpoint. In most cases, searching has the following query parameters: - `term` - generic term used for the search - `city` or `zip` - a city name or postal code (only Dutch postal codes allowed) - `distance` - distance from the center of the given city or zip (default *5km*) Results from /search endpoints do not support custom ordering, but are ordered based on relevance (i.e. *score* for term queries and *distance* for all location bound search queries). ## Rate limiting Usage of the Congressus API is unlimited within the plan and permissions of the account you are using. To prevent fraud and abuse, requests to the API are throttled. You can request the API 60 times each minute and 1000 times per hour. The API will respond with a **429 Too many requests** response. This response contains the following fields in the headers: - `X-RateLimit-Limit` The total number of requests allowed for the active window - `X-RateLimit-Remaining` The number of requests remaining in the active window. - `X-RateLimit-Reset` UTC seconds since epoch when the window will be reset. - `Retry-After` Seconds to retry after when the Rate Limit will be reset. ## Cross-Origin Resource Sharing This API features Cross-Origin Resource Sharing (CORS) implemented in compliance with W3C spec. This allows cross-domain communication from the browser. All responses have a wildcard same-origin, which allows to use our API from any domain or server. # Webhooks Information in a Congressus administration is constantly changing. If you want to perform actions based on these changes, webhooks help you to achieve this. Instead of querying the API at a certain interval, Congressus will notify you about changes to information in the administration. ## Usage Webhooks are useful in a broad range of situations. When the state of an resource changes, Congressus will perform a HTTP request to the URL you provide. Based on the payload of the request, you can determine which action you need to perform. How it works: - You need a URL that Congressus can call to deliver the payload. The Congressus servers must be able to access this URL. - You can add HTTP basic authentication or other token authentication in the URL, as long as the URL stays valid. - Your URL always needs to respond with a 200 HTTP status. Upon registration this is checked. - When your URL responds with another HTTP status code, Congressus will retry to deliver the call 10 times. The time interval between retries is gradually extended. - After each call, Congressus will store the last HTTP status code and HTTP body. Using the webhooks API, you can retrieve this information for debugging purposes. - You can register as many webhooks as required in an administration. Registration is done by sending a POST request to the webhooks API. > **We strongly recommend that you use a secure HTTPS endpoint for receiving payload from Congressus. If you use > unencrypted HTTP, anyone on the network may be able to listen in on sensitive information like members and invoices.** ## Webhook events Each webhook subscribes to an event. When an event occurs, Congressus will call the webhook using an HTTP request to the provided URL. The following events are available: **Members** - member - All member related events - member_added - Member added to the administration - member_updated - Existing Member is updated - member_deleted - Member is removed from the administration - member_birthday - Triggered once on the birthday of a member **Events** - event - All event related events - event_added - Event added - event_updated - Event updated - event_deleted - Event deleted from the administration **Event participations** - event_participation - All event participation related events - event_participation_added - Event participation added - event_participation_updated - Event participation updated - event_participation_deleted - Event participation deleted from the administration **Form entries** - form_entry - All form entry related events - form_entry_added - Form entry added - form_entry_updated - Form entry updated - form_entry_deleted - Form entry deleted from the administration **Sale invoices** - sale_invoices - All sale invoice related events - sale_invoices_added - Sale invoice added - sale_invoices_updated - Sale invoice updated - sale_invoices_deleted - Sale invoice deleted from the administration ## Payload Each webhook call has a payload based on the category of the event that triggered the webhook. E.g. events in the category **Members** get a payload based on the schema for Members, filled with the data for the resource that triggered the webhook. Each webhook call contains the following information: - `webhook_id`- The id of the webhook that triggered the call - `webhook_event` - The category of events for the webhook - `webhook_event_trigger` - The trigger that caused the webhook call - `created` - Date and time at which the webhook was triggered - `data` - List which contains the payload(s) in the form of the complete resource that triggered the event # Changelog This is version 3.0 of the Congressus API. In this chapter we describe all changes in v3.0. ## 2025-09-30 Endpoint for Filters added - A new endpoint `/filters` is added to retrieve available filters for Members, Events and Organisations. ## 2025-08-13 Filter on folder_id added to Storage - The `folder_id` parameter is added to the `storage` endpoint. This allows you to filter storage resources by folder. ## 2025-07-11 Website added to Magic link endpoint - The `website_id` parameter is added to the `magic-links` endpoint. This allows you to create magic links for a specific website. ## 2025-05-24 Organisation resource improvements - `Organisation` resources now also have the 'published' attribute. - `Organisation` resources now also include custom field data in the `custom_field_data` attribute. - Custom fields are defined per organisation category, so the custom fields available for an organisation depend on the category of the organisation. - `Organisation category` resources now also include metadata for the custom fields available for that category in the `custom_fields` attribute. ## 2025-05-04 Magic links added - `Magic links` are added to the API. These links can be used to authenticate a website visitor without the need for a password. ## 2024-11-25 Form and Form entry resources added - `Form` and `Form entry` resources are added to the API. - `Form` resources can be created and updated through the API. It is currently not possible to delete a form or manage fields and fieldsets. - `forms//entries` endpoint is available to retrieve form entries. - `forms//fields` endpoint is available to retrieve form fields. ## 2024-04-23 Custom fields for Members available in PUT/POST requests - Custom fields for Members can now be added or updated through the API. The custom fields are available in the `custom_field_data` attribute of the Member resource. - The old `custom_fields` attribute is deprecated and will be removed in a future version. - The `members/custom-fields` resource shows the available custom fields for Members, including meta information. ## 2024-02-27 Action endpoints for EventParticipation added - `EventParticipation` status can now be changed through the API, including fines when unsubscribing or declining a participation. - API upgrade guide from v20 to v30 removed from docs, as it is no longer relevant. The v20 API is unavailable since mid 2023. ## 2022-12-09 Event ticket types endpoints - `EventTicketType` resources can now be created, updated and deleted through the API - The context is now applied at row level according to the status of the Member for the `v30/members` endpoint ## 2022-06-28 Events updated, MembershipStatus resources added - `Event` resources are now fully operational, including the possibility to add participants / sell tickets through the API. - `MembershipStatus` is now available for Member resources. ## 2022-06-22 Minor updates and fixes - Feat: /members can be filtered against multiples statuses with the status_id query parameter (i.e: /members?status_id=2&status_id=3). - Feat: the News model now contains a list of websites where the news item is published on - Fix: add the default website to POST /news on create - Fix: sale_invoice_id is now honored when given by the creation of a sale invoice /sale-invoices//send ## 2022-06-03 Minor updates and fixes - Feat: Additional filtering for /sale-invoices endpoint added (invoice_type 'debit', 'is_credited' and 'is_not_credited'). - Feat: Renamed /groups/folders endpoints to /group-folders for more consistency. Deprecated old endpoints. - Feat: Added member status resources through /member-statuses. - Feat: Added profile_picture and formal_picture to Member resources. - Fix: we incorrectly used 'per_page' as parameter in the Pagination-section of these docs. The correct parameter is **'page_size'**. - Fix: all non-recursive endpoints for Group folders and Product folders returned children, this is resolved. ## 2022-05-03 Member validation through context added - Added extended validation options for Member-resources by setting a `context` parameter. This context ensures validation according to the field settings as set in Congressus Manager for the member status. - Description for Context validation added to the Member-resources. - Introduction on Context validation added to the [upgrade guide](#section/Upgrading-from-v20-to-v30) ## 2022-04-22 Upgrade guide from v20 to v30 added - First version for the [upgrade guide](#section/Upgrading-from-v20-to-v30) added ## 2022-03-23 Additional filtering for Group and Organisation resources - `Group` and `Group membership` resources can use a filter on member_id - `Organisation` and `Organisation membership` resources can use a filter on member_id ## 2022-03-21 Group and GroupFolder resources added - Group, GroupFolder and GroupMembership resources are added to the API. - `Group folders` are added and use a tree-like structure. - `Organisation` resources have create, update and delete views added. - `Organisation membership` resources are added - Fix: SDD mandates returned and empty list for Member resources. ## 2021-10-14 Organisation resources added - Both Organisation and Organisation category resources are added to the API. ## 2021-10-02 Additional filters added for Event participations - `Event participations` have additional filter functionality ## 2021-09-22 Added resources for Product folders and Sale invoice workflows - `Product folders` are added, using a tree-like structure. - `Sale invoice workflows` are added as resource. Read-only for this moment. - Updated descriptions for Sale invoice attributes. ## 2021-08-09 additional filters for events and products - Events can now be filtered on published true/false - Products can now be filtered on published and folder_id. More than one folder_id can be given by supplying it more than once as query param, e.g. `products?folder_id=123&folder_id=456` ## 2021-08-04 custom fields and descriptions added, publication options added to events and blogs - The retrieve member resource now also shows the custom field information for a member - Many attributes have an additional description added - Publication attributes are added to Event and Blog resources ## 2021-06-09 website related resources added - Website and Webpage resources added (list and get only) - News resources added - Default order is added for Websites, Webpages, Events and News list endpoints. You can overwrite the default order with the `order` query param - Improved descriptions for several resources, removed some typo's in the documentation ## 2021-04-06 initial release - This initial release contains a minor set of resources to work with.

Go to Download


promptphp/intercept

65 Favers
16585 Downloads

A middleware collection for Laravel AI SDK agents providing middleware across security, observability, performance and guidance.

Go to Download


ctsoftwarellc/laravel-mail-throttle

2 Favers
3745 Downloads

Distributed rate limiting for Laravel mail across multiple queue workers

Go to Download


konfig/snaptrade-php-sdk

1 Favers
26187 Downloads

Connect brokerage accounts to your app for live positions and trading. ## Rate limiting Two limits apply to requests signed with your `clientId`. The stricter one wins, and exceeding either returns `429 Too Many Requests`. - **Customer-level** — 250 requests/minute by default, scoped to your `clientId` and applied across all endpoints. Reported in `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset`. - **Account-level** — 10 requests/minute per account, scoped to (`clientId`, `accountId`). All covered operations for one account draw on the same bucket — reading balances and reading positions share it — and enforcement does not depend on the HTTP method, so updating an account consumes the same bucket as reading it. Only enforced for Personal users, and only for integrations it has been rolled out to — it is not yet in force for every Personal integration. It also does not apply on every operation that documents a 429 below. Where it applies it is reported in `X-RateLimit-Account-Limit`, `X-RateLimit-Account-Remaining` and `X-RateLimit-Account-Reset`. Do not read the absence of those headers as proof the limit is off — some configurations omit the rate limit headers while still enforcing the limit, so header absence tells you nothing about your allowance. On a 429, `X-RateLimit-Remaining: 0` means you hit the customer-level limit and `X-RateLimit-Account-Remaining: 0` means the account-level one. Wait for the corresponding `*-Reset` value (seconds) before retrying, or fall back to exponential backoff with jitter. Not every 429 is explained by those headers. A separate per-authenticated-user limit, reported in no `X-RateLimit-*` header, covers OAuth-authenticated requests and signed requests in configurations where the customer-level limit is not in effect — on the operations that use the default throttles. A few operations override those and are governed by the customer-level limit alone. The two do not stack: a signed request governed by the customer-level limit above is not additionally subject to the per-user one. If a 429 arrives with no header at zero — or with no `X-RateLimit-*` headers at all — honour `Retry-After` and back off. Treat the remaining counts as a hint, not a guarantee that the next request will succeed. Because the customer-level limit applies everywhere, any signed request can return 429. **OAuth-authenticated requests are an exception.** They are not subject to the customer-level limit and do not receive `X-RateLimit-Limit`, `X-RateLimit-Remaining` or `X-RateLimit-Reset` — do not wait on those headers or design around a customer-level allowance on this path. The account-level limit still applies to them on the account-data endpoints above, reported in the `X-RateLimit-Account-*` headers. On operations using the default throttles the per-user limit above applies to them as well, so an OAuth request can be rejected while the account headers still show capacity; on the few operations that override those throttles, OAuth callers have no per-user ceiling at all. Drive retries from `Retry-After` and exponential backoff with jitter rather than from the headers. See https://docs.snaptrade.com/docs/ratelimiting.

Go to Download


hampel/saasu-api-laravel

0 Favers
122 Downloads

Laravel service provider, manager and facade for the Saasu accounting API client, with cached OAuth tokens, a rate limit shared across workers, and Http::fake() support

Go to Download


Next >>