Skip to main content

Common Errors

This section lists the errors in the responses from the REST APIs of SwiftFederation solutions. For the errors specific to an API, please check the corresponding API document.

Error Syntax

The error properties of the JSON object, along with the Status Code and the Reason Phrase, in the response is used to indicate the specific information of the error of the API call:

  • code: the error code, i.e. "INVALID_REQUEST" in the example below.
  • message: the error message, i.e. "Invalid request parameters" in the example below.
HTTP/1.1 401
Date: Wed, 06 Aug 2025 09:42:16 GMT
Content-Type: application/json;charset=UTF-8
Transfer-Encoding: chunked
Connection: keep-alive
x-sfd-trace-id: 83833830e1f94b5586e9187e366c5c7c

{
"code":"Signature.NotMatch",
"message":"The request signature that we calculate does not match the signature that you provided."
}

Status Codes, Error Codes and Error Messages

HTTP status codeError codeError message
400Request.BadRequestBad request.
400CustomerId.InvalidCustomerId is empty or invalid.
400ProductId.InvalidProductId is empty or invalid.
400AuthorizationFormat.InvalidAuthorization format is invalid.
400AccessKeyId.InvalidAccessKeyId is empty or invalid.
400Timestamp.InvalidX-SFD-Date is empty or invalid.
400Nonce.InvalidX-SFD-Nonce is empty or invalid.
400URI.InvalidURI is empty or invalid.
400Signature.Version.InvalidX-SFD-Signature-Version is not supported.
400Signature.ExpiredThe value of X-SFD-Date should be within 1 hour earlier or later than current time.
400Method.InvalidMethod is empty or invalid.
400AccountId.InvalidAccountId is empty or invalid.
400Name.InvalidName is empty or invalid.
400ParentId.InvalidParentId is empty or invalid.
400Type.InvalidType is empty or invalid.
401Signature.NotMatchThe request signature that we calculate does not match the signature that you provided.
401AccessCredential.InvalidAccess key id is not correct.
403Permission.ForbiddenCan't access according to this app key.
403CustomerName.ConflictCan't execute because name exist.
403Parent.NotExistCan't execute because parentId does not exist.
403CustomerType.InvalidCan't execute because parent type is not partner.
403CustomerChild.ExistCan't execute because customer has child customer.
403Customer.NotExistCan't execute because customer does not exist.
403Product.VAS.Subscription.InvalidPackage from solution has not been subscribed.
403Product.Subscription.InvalidProduct has not been subscribed.
403Account.NotExistCan't execute because account does not exist.
403Permission.ForbiddenCan't access according to this account id.
404TargetCustomerId.NotFoundTarget customer id is not found.
404Customer.NotFoundCustomer is not found.
405Request.MediaTypeNotSupportedContent type is not supported.