API status codes and errors

The SEM APIs return standard HTTP status codes to indicate whether a request was successful or failed.

Most error responses include:

  • an HTTP status code,
  • a machine-readable error code,
  • and a human-readable error description to help identify and troubleshoot issues.

Common HTTP status codes

HTTP statusDescriptionCommon causes
200 OKRequest completed successfullySuccessful retrieval or update
204 No ContentRequest completed successfully with no response bodySuccessful delete or stop operations
400 Bad RequestInvalid request parameters or malformed request bodyInvalid filters, invalid date ranges, malformed JSON, unsupported values
401 UnauthorizedAuthentication failedMissing, invalid, or expired access token
403 ForbiddenAccess deniedSeller does not have permission to access the requested SEM feature
404 Not FoundRequested resource not foundInvalid campaign ID or missing resource
422 Unprocessable EntityRequest payload validation failedInvalid request structure or unsupported content type
429 Too Many RequestsRate limit exceededToo many requests sent within the allowed time window
500 Internal Server ErrorUnexpected server-side errorTemporary service or processing issue
503 Service UnavailableService temporarily unavailableTemporary outage or maintenance window

Error response structure

Most SEM APIs return structured error responses containing:

  • code: Machine-readable error identifier
  • description: Human-readable error message
  • info: Additional context about the error
  • severity: Error severity level
  • category: Error classification

Example:

{ "error": [ { "code": "INVALID_REQUEST.SEM_API", "description": "Request not valid", "info": "End date cannot be before start date", "severity": "Error", "category": "Data specific error" } ]
}

Rate limiting

SEM APIs enforce request rate limits to ensure platform stability.

If you submit too many requests in a short period of time, you may exceed Walmart’s rate limits and receive HTTP 429 (Too Many Requests) responses. For more details on throttling and best practices, refer to the Rate Limiting Guide.