{"items":[{"type":"link","label":"Keeta Basic API Reference","link":"/apis/grocery/basic","routeSlug":"/apis/grocery/basic","content":{"contentType":"overview","meta":{"name":"Keeta Basic API Reference"},"children":[{"nodeType":"container","panels":[{"title":"Download OpenAPI description","titleTranslationKey":"download.description.title","children":[{"kind":"download","label":"basic.json","url":"/_bundle/apis/@grocery/basic.json?download"},{"kind":"download","label":"basic.yaml","url":"/_bundle/apis/@grocery/basic.yaml?download"}]},{"title":"Overview","titleTranslationKey":"info.title","children":[{"kind":"email","title":"Keeta Developer Website","email":"https://developers.mykeeta.com/","label":"https://developers.mykeeta.com/","withCopyButton":true,"copyContent":"https://developers.mykeeta.com/"}]},{"title":"Languages","titleTranslationKey":"languages.title","children":[{"kind":"languages","options":[{"key":"curl","title":"curl","lang":"curl"},{"key":"javascript","title":"JavaScript","lang":"JavaScript"},{"key":"node","title":"Node.js","lang":"Node.js"},{"key":"python","title":"Python","lang":"Python"},{"key":"java","title":"Java","lang":"Java"},{"key":"csharp","title":"C#","lang":"C#"},{"key":"php","title":"PHP","lang":"PHP"},{"key":"go","title":"Go","lang":"Go"},{"key":"ruby","title":"Ruby","lang":"Ruby"},{"key":"r","title":"R","lang":"R"},{"key":"payload","title":"Payload","lang":"Payload"}]}]},{"title":"Servers","titleTranslationKey":"servers.title","children":[{"kind":"servers","servers":[{"url":"https://open.mykeeta.com/api/open/grocery"}],"mode":"default"}]}],"children":[{"nodeType":"overview-section-wrapper","children":[{"nodeType":"header","level":1,"label":"Keeta Basic API Reference (v.1.0.0)","showPageActions":true},{"nodeType":"overview-section-wrapper","children":[{"nodeType":"markdoc","content":"This API provides basic functionality for Keeta platform integration, including webhook configuration, authorization management, and OAuth token operations."}],"sectionId":"/apis/grocery/basic"}],"sectionId":"/apis/grocery/basic"}]}]}},{"label":"Generate Access Token","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/apis/grocery/basic/other/generateaccesstoken","routeSlug":"/apis/grocery/basic/other/generateaccesstoken","metadata":{"seo":{"title":"Generate Access Token","description":"Generate an OAuth 2.0 access token to include in the Authorization header of Partner API requests."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"generateAccessToken","name":"Generate Access Token","isWebhook":false,"pointer":"/paths/~1v1~1oauth~1token/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Generate Access Token","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Generate an OAuth 2.0 access token to include in the Authorization header of Partner API requests."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Rate Limiting:"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" This endpoint is rate-limited to one request per second per client ID. If you exceed this limit, you will receive a "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"429 Too Many Requests"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" response."},"children":[]}]}]}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"Signature","scopes":[],"type":"apiKey","in":"header","paramName":"Signature","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"To enhance overall security, Keeta requires a signature in the Header when making requests to Keeta. Please refer to "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"https://api-docs.mykeeta.com/apis/yhsu3hu21ch23yabx4xuuuq7/docs/auth"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Authorization Guide"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" for details."},"children":[]}]}]}]}]}]},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_124"}},"schemaId":"schema_124","pointer":"/paths/~1v1~1oauth~1token/post/requestBody"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/v1/oauth/token","servers":[{"url":"https://open.mykeeta.com/api/open/grocery"}],"parameters":{"path":[],"query":[],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"Signature","type":"apiKey","name":"Signature","in":"header"}],"scopes":[]}],"requestBody":{"application/json":{"schemaId":"schema_124"}},"responseCodes":["200","400","429","500"],"pointer":"/v1/oauth/token","href":"other/generateaccesstoken","openApiOperationId":"generateAccessToken","summary":"Generate Access Token"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://open.mykeeta.com/api/open/grocery"}],"schemaId":"schema_124","mediaTypes":["application/json"],"mediaTypeSchemas":{"application/json":{"schemaId":"schema_124"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"Successfully retrieved OAuth Token","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/TokenResponse","exampleIds":["paths/~1v1~1oauth~1token/post/responses/200/content/application~1json/example"]}},"schemaId":"components/schemas/TokenResponse","exampleIds":["paths/~1v1~1oauth~1token/post/responses/200/content/application~1json/example"]},{"code":"400","description":"Bad Request - The request parameters were invalid, missing, or malformed","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/OAuthErrorResponse","exampleIds":["paths/~1v1~1oauth~1token/post/responses/400/content/application~1json/examples/invalidRequest","paths/~1v1~1oauth~1token/post/responses/400/content/application~1json/examples/missingFieldFromRequest","paths/~1v1~1oauth~1token/post/responses/400/content/application~1json/examples/missingBody","paths/~1v1~1oauth~1token/post/responses/400/content/application~1json/examples/invalidUrlEncodingInBody","paths/~1v1~1oauth~1token/post/responses/400/content/application~1json/examples/unsupportedGrantType"]}},"schemaId":"components/schemas/OAuthErrorResponse","exampleIds":["paths/~1v1~1oauth~1token/post/responses/400/content/application~1json/examples/invalidRequest","paths/~1v1~1oauth~1token/post/responses/400/content/application~1json/examples/missingFieldFromRequest","paths/~1v1~1oauth~1token/post/responses/400/content/application~1json/examples/missingBody","paths/~1v1~1oauth~1token/post/responses/400/content/application~1json/examples/invalidUrlEncodingInBody","paths/~1v1~1oauth~1token/post/responses/400/content/application~1json/examples/unsupportedGrantType"]},{"code":"429","description":"Too Many Requests - Rate limit exceeded","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ErrorResponse","exampleIds":["paths/~1v1~1oauth~1token/post/responses/429/content/application~1json/example"]}},"schemaId":"components/schemas/ErrorResponse","exampleIds":["paths/~1v1~1oauth~1token/post/responses/429/content/application~1json/example"]},{"code":"500","description":"Internal Server Error - Something went wrong on the server side","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ErrorResponse","exampleIds":["paths/~1v1~1oauth~1token/post/responses/500/content/application~1json/example"]}},"schemaId":"components/schemas/ErrorResponse","exampleIds":["paths/~1v1~1oauth~1token/post/responses/500/content/application~1json/example"]}],"pointer":"/paths/~1v1~1oauth~1token/post/responses"}],"panels":[{"children":[{"kind":"response","headerTitle":"Response","responseCodes":[{"code":"200","schemaId":"components/schemas/TokenResponse","exampleIds":["paths/~1v1~1oauth~1token/post/responses/200/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/TokenResponse","exampleIds":["paths/~1v1~1oauth~1token/post/responses/200/content/application~1json/example"]}}},{"code":"400","schemaId":"components/schemas/OAuthErrorResponse","exampleIds":["paths/~1v1~1oauth~1token/post/responses/400/content/application~1json/examples/invalidRequest","paths/~1v1~1oauth~1token/post/responses/400/content/application~1json/examples/missingFieldFromRequest","paths/~1v1~1oauth~1token/post/responses/400/content/application~1json/examples/missingBody","paths/~1v1~1oauth~1token/post/responses/400/content/application~1json/examples/invalidUrlEncodingInBody","paths/~1v1~1oauth~1token/post/responses/400/content/application~1json/examples/unsupportedGrantType"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/OAuthErrorResponse","exampleIds":["paths/~1v1~1oauth~1token/post/responses/400/content/application~1json/examples/invalidRequest","paths/~1v1~1oauth~1token/post/responses/400/content/application~1json/examples/missingFieldFromRequest","paths/~1v1~1oauth~1token/post/responses/400/content/application~1json/examples/missingBody","paths/~1v1~1oauth~1token/post/responses/400/content/application~1json/examples/invalidUrlEncodingInBody","paths/~1v1~1oauth~1token/post/responses/400/content/application~1json/examples/unsupportedGrantType"]}}},{"code":"429","schemaId":"components/schemas/ErrorResponse","exampleIds":["paths/~1v1~1oauth~1token/post/responses/429/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ErrorResponse","exampleIds":["paths/~1v1~1oauth~1token/post/responses/429/content/application~1json/example"]}}},{"code":"500","schemaId":"components/schemas/ErrorResponse","exampleIds":["paths/~1v1~1oauth~1token/post/responses/500/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ErrorResponse","exampleIds":["paths/~1v1~1oauth~1token/post/responses/500/content/application~1json/example"]}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/other/generateaccesstoken"}],"panels":[]}]},"httpPath":"/v1/oauth/token"}],"store":{"schemaStore":{"components/schemas/TokenResponse":{"id":"components/schemas/TokenResponse","kind":"json-schema","title":"TokenResponse","data":{"type":"object","properties":{"accessToken":{"type":"string","example":"eyJhbGciOiJQUzI1NiIsInR5cCI6IkpXVCJ9eyJ1dWlkIjoiVEVTVCJ9","description":"A short-lived JSON Web Token used to authenticate Partner API requests."},"tokenType":{"type":"string","example":"Bearer","description":"The token type used in the Authorization header."},"expiresIn":{"type":"integer","example":7200,"description":"The access token lifetime in seconds. Cache and reuse the token until it expires, using this value as the cache time-to-live."}}}},"components/schemas/OAuthErrorResponse":{"id":"components/schemas/OAuthErrorResponse","kind":"json-schema","title":"OAuthErrorResponse","data":{"type":"object","properties":{"code":{"type":"string","example":"INVALID_REQUEST","description":"OAuth error code."},"message":{"type":"string","example":"Invalid client credentials","description":"Human-readable explanation of the OAuth error."}}}},"components/schemas/ErrorResponse":{"id":"components/schemas/ErrorResponse","kind":"json-schema","title":"ErrorResponse","data":{"type":"object","properties":{"code":{"type":"string","example":"INTERNAL_ERROR","description":"Machine-readable error code."},"message":{"type":"string","example":"Internal Server Error","description":"Human-readable error message."}}}},"components/schemas/AuthorizedResourceResponse":{"id":"components/schemas/AuthorizedResourceResponse","kind":"json-schema","title":"AuthorizedResourceResponse","data":{"type":"object","description":"Merchant authorization information.","properties":{"chainId":{"type":"string","example":"4323","description":"Chain ID of the authorized vendors."},"chainName":{"type":"string","example":"GUI JI","description":"Chain name of the authorized vendors."},"authorizedVendors":{"type":"array","description":"List of authorized vendors.","items":{"$ref":"#/components/schemas/AuthorizedShop"}}}}},"components/schemas/AuthorizedShop":{"id":"components/schemas/AuthorizedShop","kind":"json-schema","title":"AuthorizedShop","data":{"type":"object","properties":{"vendorId":{"type":"string","example":"145541","description":"Vendor ID."},"name":{"type":"string","example":"Downtown Vendor","description":"Vendor name."},"address":{"type":"string","example":"123 Main Street","description":"Vendor address."},"longitude":{"type":"string","example":"114.057868","description":"Vendor longitude."},"latitude":{"type":"string","example":"22.543099","description":"Vendor latitude."}}}},"components/schemas/CallbackErrorResponse":{"id":"components/schemas/CallbackErrorResponse","kind":"json-schema","title":"CallbackErrorResponse","data":{"type":"object","properties":{"title":{"type":"string","example":"Unexpected error","description":"Human-readable error title."},"status":{"type":"integer","format":"int32","example":500,"description":"Numeric error status supplied by the callback service."}}}},"schema_124":{"kind":"json-schema","data":{"type":"object","required":["grantType","clientId","clientSecret"],"properties":{"grantType":{"type":"string","default":"client_credentials","example":"client_credentials","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The grant_type specifies the type of OAuth 2.0 grant being used for obtaining the access token. Currently only client_credentials is supported."},"children":[]}]}]}]},"clientId":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The client_id is a unique identifier assigned to the client application. This value is used to authenticate the application requesting the access token. Ensure that this is kept secure and not exposed publicly."},"children":[]}]}]}]},"clientSecret":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The client_secret is a confidential value known only to the client and the authorization server. It is used in conjunction with the client_id to authenticate the client application. Ensure that this is kept secure and not exposed publicly."},"children":[]}]}]}]}}},"id":"schema_124"}},"exampleStore":{"paths/~1v1~1oauth~1token/post/responses/200/content/application~1json/example":{"value":{"access_token":"eyJhbGciOiJQUzI1NiIsInR5cCI6IkpXVCJ9eyJ1dWlkIjoiVEVTVCJ9","token_type":"Bearer","expires_in":7200},"id":"paths/~1v1~1oauth~1token/post/responses/200/content/application~1json/example"},"paths/~1v1~1oauth~1token/post/responses/400/content/application~1json/examples/invalidRequest":{"value":{"code":"invalid_request","message":"Invalid client credentials"},"key":"invalidRequest","summary":"Invalid request","id":"paths/~1v1~1oauth~1token/post/responses/400/content/application~1json/examples/invalidRequest"},"paths/~1v1~1oauth~1token/post/responses/400/content/application~1json/examples/missingFieldFromRequest":{"value":{"code":"invalid_request","message":"client_id is required"},"key":"missingFieldFromRequest","summary":"Missing field from request","id":"paths/~1v1~1oauth~1token/post/responses/400/content/application~1json/examples/missingFieldFromRequest"},"paths/~1v1~1oauth~1token/post/responses/400/content/application~1json/examples/missingBody":{"value":{"code":"invalid_request","message":"Request body is missing"},"key":"missingBody","summary":"Missing body","id":"paths/~1v1~1oauth~1token/post/responses/400/content/application~1json/examples/missingBody"},"paths/~1v1~1oauth~1token/post/responses/400/content/application~1json/examples/invalidUrlEncodingInBody":{"value":{"code":"invalid_request","message":"Invalid URL-encoded body"},"key":"invalidUrlEncodingInBody","summary":"Invalid URL encoding in body","id":"paths/~1v1~1oauth~1token/post/responses/400/content/application~1json/examples/invalidUrlEncodingInBody"},"paths/~1v1~1oauth~1token/post/responses/400/content/application~1json/examples/unsupportedGrantType":{"value":{"code":"unsupported_grant_type","message":"Only 'client_credentials' grant type is supported"},"key":"unsupportedGrantType","summary":"Unsupported grant type","id":"paths/~1v1~1oauth~1token/post/responses/400/content/application~1json/examples/unsupportedGrantType"},"paths/~1v1~1oauth~1token/post/responses/429/content/application~1json/example":{"value":{"code":"TOO_MANY_REQUESTS","message":"Rate limit exceeded for client <client-id>"},"id":"paths/~1v1~1oauth~1token/post/responses/429/content/application~1json/example"},"paths/~1v1~1oauth~1token/post/responses/500/content/application~1json/example":{"value":{"code":"INTERNAL_ERROR","message":"Internal Server Error"},"id":"paths/~1v1~1oauth~1token/post/responses/500/content/application~1json/example"}},"securitySchemeStore":{"OAuth2ClientCredentials":{"id":"OAuth2ClientCredentials","type":"oauth2","description":"OAuth 2.0 client credentials used by partner applications.","flows":{"clientCredentials":{"tokenUrl":"https://api-docs.mykeeta.com/apis/yhsu3hu21ch23yabx4xuuuq7/basic/endpoints/generateaccesstoken","scopes":{}}}},"Signature":{"id":"Signature","type":"apiKey","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"To enhance overall security, Keeta requires a signature in the Header when making requests to Keeta. Please refer to "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"https://api-docs.mykeeta.com/apis/yhsu3hu21ch23yabx4xuuuq7/docs/auth"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Authorization Guide"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" for details."},"children":[]}]}]}],"in":"header","paramName":"Signature"}},"servers":[{"url":"https://open.mykeeta.com/api/open/grocery"}]},"options":{"hideSidebar":true,"mockServer":{"off":true},"disableRouter":true,"downloadUrls":[{"url":"/_bundle/apis/@grocery/basic.json?download"},{"url":"/_bundle/apis/@grocery/basic.yaml?download"}],"excludeFromSearch":false,"specType":"openapi","markdocOptions":{"tags":{},"nodes":{},"components":{}},"metadata":{"title":"Keeta Basic API Reference","description":"This API provides basic functionality for Keeta platform integration, including webhook configuration, authorization management, and OAuth token operations.\n"}},"baseSlug":"/apis/grocery/basic","routesMapping":{}}