Skip to content

API Get Merchant Profile

API Get Merchant Profile is an endpoint to retrieve the merchant's registered profile data on the Senmo system.


API Information

FieldValue
Path/api/{version}/profile
HTTP MethodGET
Service Code00
Versionv1.0
TypeJSON
AuthenticationOAuth 2.0 with Access Token

Request Structure

Request Header

Details
Parameter / FieldMandatoryTypeDescription
Content-TypeMStringIndicates the media type of the resource. Use: application/json
AuthorizationMStringRepresents the access_token. Starts with "Bearer" followed by the access token. e.g.: Bearer eyJraWQiOi...
X-TIMESTAMPMStringClient's current local time in yyyy-MM-ddTHH:mm:ss.SSSTZD format
X-SIGNATUREMStringSymmetric signature using HMAC_SHA512. Formula: stringToSign = HTTPMethod + ":" + EndpointUrl + ":" + AccessToken + ":" + Lowercase(HexEncode(SHA256(minify(RequestBody)))) + ":" + TimeStamp. Notes: (1) Use full URL including all parameters. (2) If no Request Body, use empty string.
X-PARTNER-IDMStringUnique partner ID. Use the Client ID obtained after the onboarding process.
X-EXTERNAL-IDMStringNumeric String. A unique reference number you generate. Must be unique on the same day.
ORIGINOStringOrigin domain registered on the iFortepay system.
CHANNEL-IDMStringDevice identification on which the API services are being accessed. Use value: api

M = Mandatory, O = Optional

ℹ️ This API uses HTTP GET method — no Request Body is required.


Response Structure

Response Header

Details
Parameter / FieldMandatoryTypeDescription
Content-TypeMStringIndicates the media type of the resource (e.g. application/json)
X-TIMESTAMPMStringClient's current local time in yyyy-MM-ddTHH:mm:ss.SSSTZD format

Response Body

Details
Parameter / FieldTypeLengthDescription
responseCodeString7Response code
responseMessageString150Response description
detailDataObject-Detail data object
detailData.clientIdString-Client's unique ID
detailData.businessNameString-Client's company name
detailData.businessBrandNameString-Client's brand name
detailData.businessAccountNumberString-Client's registered account number
detailData.businessBankCodeString-Client's registered bank code
detailData.businessBankNameString-Client's registered bank name
detailData.ipArray-List of IP addresses registered in the Senmo system
detailData.businessWebsiteString-Client's website / domain
detailData.callbackAccountInquiryString-Client's registered callback URL for API Account Inquiry
detailData.callbackTransferString-Client's registered callback URL for API Transfer Interbank
detailData.clientSecretString-Client secret key used for Signature & Security
detailData.publicKeyString-Client's public key registered in the Senmo system
detailData.businessAddressString-Client's address registered in the Senmo system
detailData.businessPostalCodeString-Client's postal code registered in the Senmo system

Example Responses

Details

✅ Success Response

json
{
  "responseCode": "2000000",
  "responseMessage": "Successful",
  "detailData": {
    "clientId": "MCPD2312010070",
    "businessName": "PT Jojo Bizzare Advanture",
    "businessBrandName": "Jojo Bizzare",
    "businessAccountNumber": "6661666123",
    "businessBankCode": "014",
    "businessBankName": "BCA",
    "ip": [
      "103.150.114.130",
      "182.253.253.69",
      "114.5.16.100"
    ],
    "businessWebsite": "https://www.alababil.co.id",
    "callBackAccountInquiry": "https://test-acc-inquiry.free.beeceptor.com",
    "callBackTransfer": "https://test-acc-inquiry.free.beeceptor.com",
    "clientSecret": "qaSecret",
    "publicKey": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA...",
    "businessAddress": "Jl. Buncit Raya No.8a, RT.7/RW.3, Kalibata, Kec. Pancoran, Kota Jakarta Selatan, DKI Jakarta",
    "businessPostalCode": "12740"
  }
}

❌ Error Response

json
{
  "responseCode": "4010000",
  "responseMessage": "Unauthorized - Origin IP is not whitelisted"
}

iFortepay API Documentation