Business API ## Sections • [Authentication](https://app.theneo.io/zencode/payme-business-api/authentication.md): Introduction სერვისების გამოსაძახებლად პირველ რიგში თქვენი აპლიკაცია უნდა დაარეგისტრიროთ შემდეგ გვერდზე: https://payme-business.zencode.io რეგისტრაციისას უნდა მიუთითოთ აპლიკაციის სახელი(დასახელება უცხოურ ენაზე). თუ არეგისტრირებთ კლიენტს Implicit ან Authorization Code Flow -ს მიხედვით, მაშინ ასევე უნდა მიუთითო გადამისამართების მისამართი რომელზეც მოხდება გადამისამართება აუტენტიფიკაციის დროს. Implicit Flow მაგალითად, თუ თქვენი აპლიკაციის client id არის 55A77637-D297-4960-BB2D-D5036B36B6B0 , ხოლო redirect uri არის https://payme.zencode.io მაშინ ამ მისამართს ექნება ასეთი სახე (url კოდირებამდე): https://payme-idp.zencode.io/Identity/Account/Login?ReturnUrl=/connect/authorize/callback?client_id=55A77637-D297-4960-BB2D-D5036B36B6B0&redirect_uri=https://payme.zencode.io&response_type=token&scope=corp ხოლო url ენკოდირების (encodeURIComponent) შემდეგ url იქნებ ესეთი https://payme-idp.zencode.io/Identity/Account/Login?ReturnUrl=%2Fconnect%2Fauthorize%2Fcallback%3Fclient_id%3D55A77637-D297-4960-BB2D-D5036B36B6B0%26redirect_uri%3Dhttps%3A%2F%2Fpayme.zencode.io%26response_type%3Dtoken%26scope%3Dcorp client_id - თქვენი აპლიკაციის client id response_type - "token" scope - "corp" redirect_uri - თქვენი აპლიკაციის redirect uri kc_locale - ინტერფეისის ენა: ka -ქართული ენის შემთხვევაში, ამ პარამეტრის გარეშე ინგლისური ენის შესაბამისი ინტერფეისი გამოჩნდება მომხმარებელი გადამისამართდება redirect_uri მისამართზე, შემდეგი პარამეტრებით query string format ში: access_token - დროებითი ტოკენი expires_in - ამოწურვის დრო token_type - ტოკენის ტიპი ამის შემდეგ თქვენ შეგიძლიათ გამოიძახოთ სერვისები დაბრუნებული access_token-ის გამოყენებით. ამისათვის თქვენს მოთხოვნებს უნდა დაამატოთ Authorization Header ასეთი სახით: Authorization: Bearer Ing1dCI6ImEzck1VZ01Gdjl0UGNsTGE2eUYzekFrZnF1RSJ9.eyJpc..... Authorization code flow მაგალითად, თუ თქვენი აპლიკაციის client id არის AEE66486-A0B1-475C-9F16-F6CD4ADABB07 , ხოლო redirect uri არის https://payme.zencode.io მაშინ ამ მისამართს ექნება ასეთი სახე (url კოდირებამდე): https://payme-idp.zencode.io/Identity/Account/Login?ReturnUrl=/connect/authorize/callback?client_id=AEE66486-A0B1-475C-9F16-F6CD4ADABB07&redirect_uri=https://payme.zencode.io&response_type=code&scope=corp ხოლო url ენკოდირების (encodeURIComponent) შემდეგ url იქნებ ესეთი https://payme-idp.zencode.io/Identity/Account/Login?ReturnUrl=%2Fconnect%2Fauthorize%2Fcallback%3Fclient_id%3DAEE66486-A0B1-475C-9F16-F6CD4ADABB07%26redirect_uri%3Dhttps%3A%2F%2Fpayme.zencode.io%26response_type%3Dcode%26scope%3Dcorp client_id - თქვენი აპლიკაციის client id response_type - "code" scope - "corp" redirect_uri - თქვენი აპლიკაციის redirect uri kc_locale - ინტერფეისის ენა: ka -ქართული ენის შემთხვევაში, ამ პარამეტრის გარეშე ინგლისური ენის შესაბამისი ინტერფეისი გამოჩნდება მომხმარებელი დაადასტურებს აპლიკაციის მოთხოვნას, ანუ გაივლის ავტორიზციას მომხმარებელი გადამისამართდება redirect_uri მისამართზე, შემდეგი პარამეტრებით query string format -ში: code - დროებითი კოდი გააგზავნოთ POST მოთხოვნა შემდეგ მისამართზე: https://payme-idp.zencode.io/connect/token შემდეგი პარამეტრებით მოთხოვნის ტანში, application/x-www-form-urlencoded Content-Type -ით: grant_type - authorization_code code - დროებითი კოდი redirect_uri - თქვენი აპლიკაციის redirect uri client_id - თქვენი აპლიკაციის client_id client_secret - თქვენი აპლიკაციის client_secret ამის შემდეგ თქვენ შეგიძლიათ გამოიძახოთ სერვისები დაბრუნებული access_token-ის გამოყენებით. ამისათვის თქვენს მოთხოვნებს უნდა დაამატოთ Authorization Header ასეთი სახით: Authorization: Bearer IsIng1dCI6ImEzck1VZ01Gdjl0UGNsTGE2eUYzekFrZnF1RSJ9.eyJpc.... Client crerdentials flow გააგზავნეთ POST მოთხოვნა შემდეგ მისამართზე: https://payme-idp.zencode.io/connect/token შემდეგი პარამეტრებით მოთხოვნის ტანში , application/x-www-form-urlencoded Content-Type -ით: grant_type - "client_credentials" client_id - თქვენი აპლიკაციის client_id client_secret - თქვენი აპლიკაციის client_secret ამის შემდეგ თქვენ შეგიძლიათ გამოიძახოთ სერვისები დაბრუნებული access_token-ის გამოყენებით. ამისათვის თქვენს მოთხოვნებს უნდა დაამატოთ Authorization Header ასეთი სახით: Authorization: Bearer ng1dCI6ImEzck1VZ01Gdjl0UGNsTGE2eUYzekFrZnF1RSJ9.eyJpc....... • [Documents](https://app.theneo.io/zencode/payme-business-api/documents.md): The Documents RESTful API allows you to create, transfer, and query documents. The API supports creating single or batch documents, getting the status of single or multiple documents, and filtering the results by various criteria. The API uses JSON format to represent the document and bulk operation details and statuses. • [Create a document for a Gel transfer](https://app.theneo.io/zencode/payme-business-api/documents/create-a-document-for-a-gel-transfer.md): This method allows the creation of one or more individual documents in national currency • [Create a SWIFT transfer document](https://app.theneo.io/zencode/payme-business-api/documents/create-a-swift-transfer-document.md): This method allows the creation of one or more individual documents in foreign currency. • [Conversion](https://app.theneo.io/zencode/payme-business-api/documents/conversion.md): This method allows the creation of one or more conversion documents between customers’ accounts. • [Package transfer in Gel](https://app.theneo.io/zencode/payme-business-api/documents/package-transfer-in-gel.md): This method allows the creation of one or more package documents in national currency. • [Package transfer SWIFT](https://app.theneo.io/zencode/payme-business-api/documents/package-transfer-swift.md): This method allows the creation of one or more package documents in foreign currency. • [Document status](https://app.theneo.io/zencode/payme-business-api/documents/document-status.md) • [Documents statuses](https://app.theneo.io/zencode/payme-business-api/documents/documents-statuses.md) • [Package transfer status](https://app.theneo.io/zencode/payme-business-api/documents/package-transfer-status.md) • [Cancellation of a Package Transfer](https://app.theneo.io/zencode/payme-business-api/documents/cancellation-of-a-package-transfer.md) • [Current day activities](https://app.theneo.io/zencode/payme-business-api/documents/current-day-activities.md) • [Document creation codes](https://app.theneo.io/zencode/payme-business-api/documents/document-creation-codes.md) • [Accounts](https://app.theneo.io/zencode/payme-business-api/accounts.md) • [Accounts index](https://app.theneo.io/zencode/payme-business-api/accounts/accounts-index.md) • [Statement](https://app.theneo.io/zencode/payme-business-api/statement.md) • [Statement statement](https://app.theneo.io/zencode/payme-business-api/statement/statement-statement.md) • [Statement summary](https://app.theneo.io/zencode/payme-business-api/statement/statement-summary.md) • [Statement statement2](https://app.theneo.io/zencode/payme-business-api/statement/statement-statement2.md) • [Rates](https://app.theneo.io/zencode/payme-business-api/rates.md) • [Rates nbg](https://app.theneo.io/zencode/payme-business-api/rates/rates-nbg.md) • [Rates nbg history](https://app.theneo.io/zencode/payme-business-api/rates/rates-nbg-history.md) • [Rates commercial](https://app.theneo.io/zencode/payme-business-api/rates/rates-commercial.md) • [Rates commercial cross rate](https://app.theneo.io/zencode/payme-business-api/rates/rates-commercial-cross-rate.md) • [Otp](https://app.theneo.io/zencode/payme-business-api/otp.md) • [Otp request](https://app.theneo.io/zencode/payme-business-api/otp/otp-request.md) • [Sign](https://app.theneo.io/zencode/payme-business-api/sign.md) • [Sign document](https://app.theneo.io/zencode/payme-business-api/sign/sign-document.md)