{"openapi":"3.0.3","info":{"title":"Access Token B2B — inbound to MUFG","version":"1.0","description":"Issues the access token that BDI must present on every subsequent API call to MUFG. The endpoint is exposed by KONG DMZ. KONG verifies the asymmetric signature, then obtains the token from Keycloak and returns it in the BI SNAP response format. This specification covers the token endpoint only.\n"},"servers":[{"url":"https://{host}","variables":{"host":{"default":"kong-dmz.mufg.co.id","description":"KONG DMZ, DC or DRC"}}}],"paths":{"/api/v1/access-token/b2b":{"post":{"summary":"Obtain an access token","operationId":"getAccessTokenB2B","parameters":[{"name":"X-TIMESTAMP","in":"header","required":true,"description":"Time of the request, ISO-8601 with offset.","schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}[+-]\\d{2}:\\d{2}$","example":"2026-08-13T10:15:30+07:00"}},{"name":"X-CLIENT-KEY","in":"header","required":true,"description":"Client key issued by MUFG to BDI.","schema":{"type":"string","maxLength":64}},{"name":"X-SIGNATURE","in":"header","required":true,"description":"SHA256withRSA over the string <X-CLIENT-KEY>|<X-TIMESTAMP>, signed with the BDI private key and encoded in base64. MUFG verifies it with the BDI public key.\n","schema":{"type":"string"}},{"name":"Content-Type","in":"header","required":true,"schema":{"type":"string","enum":["application/json"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["grantType"],"properties":{"grantType":{"type":"string","enum":["client_credentials"]},"additionalInfo":{"type":"object","description":"Reserved. Ignored by MUFG."}}},"example":{"grantType":"client_credentials","additionalInfo":{}}}}},"responses":{"200":{"description":"Token issued","content":{"application/json":{"schema":{"type":"object","required":["responseCode","responseMessage","accessToken","tokenType","expiresIn"],"properties":{"responseCode":{"type":"string","example":"2007300"},"responseMessage":{"type":"string","example":"Successful"},"accessToken":{"type":"string","description":"Bearer token, presented as Authorization on later calls."},"tokenType":{"type":"string","enum":["Bearer"]},"expiresIn":{"type":"string","description":"Lifetime in seconds.","example":"900"}}}}}},"400":{"description":"Invalid field format or missing mandatory field","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"invalidFormat":{"value":{"responseCode":"4007301","responseMessage":"Invalid field format [X-TIMESTAMP]"}},"missingMandatory":{"value":{"responseCode":"4007302","responseMessage":"Invalid mandatory field [X-CLIENT-KEY]"}}}}}},"401":{"description":"Signature or client verification failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"badSignature":{"value":{"responseCode":"4017300","responseMessage":"Unauthorized. [Signature]"}},"unknownClient":{"value":{"responseCode":"4017301","responseMessage":"Unauthorized. [Unknown client]"}}}}}},"500":{"description":"Internal error, including Keycloak being unreachable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"responseCode":"5007300","responseMessage":"General error"}}}}}}}},"components":{"schemas":{"Error":{"type":"object","required":["responseCode","responseMessage"],"properties":{"responseCode":{"type":"string","description":"Seven digits: HTTP status (3) + service code (2) + case code (2). The service code for this endpoint is 73.\n"},"responseMessage":{"type":"string"}}}}}}