How to Use Deel API for Service Requests

Skip to main content
Table of Contents
< All Topics
Print

How to Use Deel API for Service Request Management: A Comprehensive Guide

Methodology Note

This article is based on official Deel API documentation reviewed with local AI screening. No hands-on testing was conducted, and all steps are derived from documented product controls and settings. The focus is on documented workflows and supported operations for API integration.

Direct Answer

The Deel API provides endpoints for managing service requests, including listing and retrieving service request items. To use the API, you need a Deel account, an API token with the appropriate scope, and access to the sandbox environment. Follow the steps below to integrate and use the API for service request management.

Prerequisites

  1. A Deel account: If you don’t have one, sign up at app.deel.com.
  2. HTTP client: Use curl or another HTTP client to make API requests.
  3. Sandbox account and API token: Generate a sandbox token with the organizations:read scope for accessing service request endpoints.

Practical Steps

  1. Create a sandbox account: Sign in to app.deel.com, navigate to More > Developer, and create a sandbox account. This environment is isolated from real data and payments.
  2. Generate an API token: Log in to the sandbox, go to Developer > API Sandbox, and create an organization token with the organizations:read scope. Store the token securely, as it acts like a password.
  3. Use the sandbox base URL: Make API calls to https://api-staging.letsdeel.com/rest/, which is the designated endpoint for service request management in the sandbox environment.
  4. Retrieve your organization details: Send a GET request to /organizations with your API token in the Authorization header. This step verifies the token’s validity and retrieves your sandbox organization’s ID.
  5. Access service request endpoints: Use the organization ID to interact with service request endpoints, such as /service-requests, to list or retrieve items. Ensure the token has the required scope for these operations.

Verification

  1. Check the response status code: Confirm the response is 200 OK to ensure the API call was successful.
  2. Validate data inclusion: Verify the response includes service request items with their current status and shipment details, as described in the API changelog.
  3. Confirm token usage: Ensure the Authorization header contains the correct token format (Bearer YOUR_API_TOKEN) and that the token is associated with the sandbox account.

Troubleshooting

  1. 401 Unauthorized error: This indicates an invalid or missing token. Recheck the token’s validity, ensure it was generated for the sandbox, and confirm it’s correctly formatted in the header.
  2. Scope mismatch: If the token lacks the required scope (e.g., organizations:read), regenerate it with the appropriate permissions.
  3. Incorrect base URL: Ensure all requests use https://api-staging.letsdeel.com/rest/ as the sandbox base URL. Avoid using production endpoints for testing.
  4. Sandbox configuration issues: Verify the sandbox account is properly set up and that the API token is linked to it. Recheck the sandbox creation steps if needed.

Limitations

  1. Sandbox isolation: The sandbox environment does not affect real data or payments. Use it exclusively for testing and development.
  2. Stable version requirement: Service request endpoints are only available in the stable version of the Deel API (2026-01-01). Avoid using beta or deprecated versions for production.
  3. Token validity: Sandbox API tokens are not valid for production environments. Always use production tokens for live operations.

Escalation

  1. Consult Deel support: If issues persist, refer to Deel’s support resources for escalation guidance. Contact support for assistance with API integration or service request management.
  2. Documented workflows: Follow the official API documentation for troubleshooting steps, ensuring all actions align with documented procedures.

FAQs

How do I access the Deel API for service requests?

To access the Deel API for service requests, you need a sandbox account and an API token with the organizations:read scope. Use the sandbox base URL (https://api-staging.letsdeel.com/rest/) to make API calls to the service request endpoints.

What is the base URL for the Deel API service request endpoints?

The base URL for the De, API service request endpoints is the sandbox base URL, which is https://api-staging.letsdeel.com/rest/. This URL is specifically designated for sandbox operations.

What should I do if I receive a 401 Unauthorized error when using the Deel API for service requests?

If you receive a 401 Unauthorized error, check that the API token is valid and correctly formatted. Ensure that the token has the necessary scope for accessing service request endpoints, such as organizations:read.

Can I use the Deel API for service requests in a production environment?

No, the sandbox environment is for testing and does not affect real data or payments. The Deel API for service requests is only available in the stable version for production use. Always use production tokens and endpoints for live operations.

How do I retrieve a service request item by ID using the Deel API?

To retrieve a service request item by ID, make a GET request to the service request endpoint with the ID of the item in the request parameters. The response will include the current status and shipment details of the item.