From 575c2c923c25af4652d8c016e716c35fc97f7cf9 Mon Sep 17 00:00:00 2001 From: mahdi Date: Thu, 2 Feb 2023 17:32:25 +0300 Subject: [PATCH] feat: payping payment methods --- .gitignore | 3 +- _example/payping/payping.go | 41 + providers/payping/helper.go | 7 +- providers/payping/models.go | 4 +- providers/payping/payment.go | 39 +- providers/payping/payping-factory.go | 40 +- providers/payping/payping.go | 16 +- providers/payping/payping.json | 4636 ++++++++++++++++++++++++++ providers/payping/report.go | 20 +- providers/payping/withdraw.go | 8 +- 10 files changed, 4764 insertions(+), 50 deletions(-) create mode 100644 _example/payping/payping.go create mode 100644 providers/payping/payping.json diff --git a/.gitignore b/.gitignore index d1baad6..83540aa 100644 --- a/.gitignore +++ b/.gitignore @@ -13,4 +13,5 @@ # Dependency directories (remove the comment below to include it) # vendor/ -.idea \ No newline at end of file +.idea +.vscode \ No newline at end of file diff --git a/_example/payping/payping.go b/_example/payping/payping.go new file mode 100644 index 0000000..cc81eaa --- /dev/null +++ b/_example/payping/payping.go @@ -0,0 +1,41 @@ +package main + +import ( + "context" + "fmt" + "log" + + "github.com/GoFarsi/paygap/client" + "github.com/GoFarsi/paygap/providers/payping" +) + +func main() { + p, err := payping.New(client.New(), "YOUR_API_KEY") + if err != nil { + log.Fatal(err) + } + + request := &payping.PaymentRequest{ + Amount: 11000, + PayerIdentity: "124500", + PayerName: "Ali Hesami", + ClientRefId: "example-arbitary-code", + ReturnUrl: "http://example.com/callback", + Description: "desc test", + } + resp, err := p.RequestPayment(context.Background(), request) + + if err != nil { + log.Fatal(err) + } + + fmt.Println(resp) + + verify := &payping.VerifyRequest{ + Amount: request.Amount, + RefId: resp.Code, + } + verifyResp, err := p.VerifyPayment(context.Background(), verify) + + fmt.Println(verifyResp) +} diff --git a/providers/payping/helper.go b/providers/payping/helper.go index 943d9e5..5e022df 100644 --- a/providers/payping/helper.go +++ b/providers/payping/helper.go @@ -3,6 +3,7 @@ package payping import ( "context" "errors" + "fmt" "net/http" "reflect" @@ -17,8 +18,12 @@ func request[RQ any, RS any](ctx context.Context, payping *Payping, req RQ, base return response, errors.New("response type is invalid") } + if payping.apiToken == "" || len(payping.apiToken) < 10 { + return response, errors.New("jwt token is invalid") + } + headers := make(map[string]string) - headers["X-API-KEY"] = payping.apiKey + headers["Authorization"] = fmt.Sprintf("Bearer %s", payping.apiToken) headers["Content-Type"] = "application/json" // TODO: can review if SANDBOX was available diff --git a/providers/payping/models.go b/providers/payping/models.go index c7f9b5e..8e68595 100644 --- a/providers/payping/models.go +++ b/providers/payping/models.go @@ -14,8 +14,8 @@ type PaymentResponse struct { } type VerifyRequest struct { - RefId uint `json:"refId" validate:"required"` - Amount string `json:"Amount" validate:"required,min=100,max=50000000"` + RefId string `json:"refId" validate:"required"` + Amount int32 `json:"Amount" validate:"required,min=100,max=50000000"` } type VerifyResponse struct { diff --git a/providers/payping/payment.go b/providers/payping/payment.go index c8b2ae3..1795f20 100644 --- a/providers/payping/payment.go +++ b/providers/payping/payment.go @@ -10,44 +10,59 @@ import ( // refrence: https://docs.payping.ir/#operation/CreateSinglePayment func (p *Payping) RequestPayment(ctx context.Context, req *PaymentRequest) (*PaymentResponse, error) { - // return &PaymentResponse{}, nil if err := p.client.GetValidator().Struct(req); err != nil { return nil, status.New(0, http.StatusBadRequest, codes.InvalidArgument, err.Error()) } - gatewayReq := new(Request) - gatewayReq.API = p.apiKey - gatewayReq.PaymentRequest = req - - return request[*PaymentRequest, *PaymentResponse](ctx, p, gatewayReq, p.paymentEndpoint) + return request[*PaymentRequest, *PaymentResponse](ctx, p, req, p.baseUrl, p.paymentEndpoint, nil) } // refrence: https://docs.payping.ir/#operation/VerifyPayment func (p *Payping) VerifyPayment(ctx context.Context, req *VerifyRequest) (*VerifyResponse, error) { - return &VerifyResponse{}, nil + if err := p.client.GetValidator().Struct(req); err != nil { + return nil, status.New(0, http.StatusBadRequest, codes.InvalidArgument, err.Error()) + } + return request[*VerifyRequest, *VerifyResponse](ctx, p, req, p.baseUrl, p.paymentEndpoint, nil) } // refrence: https://docs.payping.ir/#operation/CreateMultiPayment func (p *Payping) RequestSharePayment(ctx context.Context, req *SharePaymentRequest) (*PaymentResponse, error) { - return &PaymentResponse{}, nil + if err := p.client.GetValidator().Struct(req); err != nil { + return nil, status.New(0, http.StatusBadRequest, codes.InvalidArgument, err.Error()) + } + return request[*SharePaymentRequest, *PaymentResponse](ctx, p, req, p.baseUrl, p.paymentEndpoint, nil) } // refrence: https://docs.payping.ir/#operation/CreateBlockPayment func (p *Payping) RequestBlockingPayment(ctx context.Context, req *BlockedPaymentRequest) (*PaymentResponse, error) { - return &PaymentResponse{}, nil + if err := p.client.GetValidator().Struct(req); err != nil { + return nil, status.New(0, http.StatusBadRequest, codes.InvalidArgument, err.Error()) + } + return request[*BlockedPaymentRequest, *PaymentResponse](ctx, p, req, p.baseUrl, p.paymentEndpoint, nil) } // refrence: https://docs.payping.ir/#operation/UnBlockPayment func (p *Payping) ReleasingBlockedPayment(ctx context.Context, req *ReleasingBlockedPaymentRequest) error { - return nil + if err := p.client.GetValidator().Struct(req); err != nil { + return status.New(0, http.StatusBadRequest, codes.InvalidArgument, err.Error()) + } + _, err := request[*ReleasingBlockedPaymentRequest, error](ctx, p, req, p.baseUrl, p.paymentEndpoint, nil) + return err } // refrence: https://docs.payping.ir/#operation/CreateIdPosPayment func (p *Payping) PaymentWithTracingId(ctx context.Context, req *PaymentWithTracerIdRequest) (*PaymentWithTracerIdResponse, error) { - return &PaymentWithTracerIdResponse{}, nil + if err := p.client.GetValidator().Struct(req); err != nil { + return nil, status.New(0, http.StatusBadRequest, codes.InvalidArgument, err.Error()) + } + return request[*PaymentWithTracerIdRequest, *PaymentWithTracerIdResponse](ctx, p, req, p.baseUrl, p.paymentEndpoint, nil) } // refrence: https://docs.payping.ir/#operation/CancelPayment func (p *Payping) PaymentSuspending(ctx context.Context, req *PaymentSuspedingRequest) error { - return nil + if err := p.client.GetValidator().Struct(req); err != nil { + return status.New(0, http.StatusBadRequest, codes.InvalidArgument, err.Error()) + } + _, err := request[*PaymentSuspedingRequest, error](ctx, p, req, p.baseUrl, p.paymentEndpoint, nil) + return err } diff --git a/providers/payping/payping-factory.go b/providers/payping/payping-factory.go index 3772339..af8c50c 100644 --- a/providers/payping/payping-factory.go +++ b/providers/payping/payping-factory.go @@ -1,6 +1,8 @@ package payping import ( + "errors" + "log" "net/http" "github.com/GoFarsi/paygap/client" @@ -8,31 +10,41 @@ import ( "google.golang.org/grpc/codes" ) -const API_VERSION = "2" - const ( - PAYPING_HOST = "https://api.payping.ir/v2/pay" + PAYPING_HOST = "https://api.payping.ir" ) const ( - PAYPING_REQUEST_API_ENDPOINT = "/pg/v4/payment/request.json" - PAYPING_VERIFY_API_ENDPOINT = "/pg/v4/payment/verify.json" - PAYPING_UNVERIFIED_TRANSACTION_API_ENDPOINT = "/pg/v4/payment/unVerified.json" + PAYPING_REQUEST_API_ENDPOINT = "/v2/pay" + PAYPING_VERIFY_API_ENDPOINT = "/v2/pay/verify" + PAYPING_MULTI_PAYMENT_API_ENDPOINT = "/v2/pay/multi" + PAYPING_BLOCK_MONEY_PAYMENT_API_ENDPOINT = "/v2/pay/BlockMoney" + PAYPING_UNBLOCK_MONEY_PAYMENT_API_ENDPOINT = "/v2/pay/UnBlockMoney" + PAYPING_POS_PAYMENT_API_ENDPOINT = "/v1/pos" ) -// New create payping provider object for user factory request methods -func New(client client.Transporter, merchantID string, sandbox bool) (*Payping, error) { +// New create payping provider object +func New(client client.Transporter, apiToken string) (*Payping, error) { if client == nil { return nil, status.ERR_CLIENT_IS_NIL } payping := &Payping{ - client: client, - merchantID: merchantID, - baseUrl: PAYPING_HOST, - requestEndpoint: PAYPING_REQUEST_API_ENDPOINT, - verifyEndpoint: PAYPING_VERIFY_API_ENDPOINT, - unverifiedEndpoint: PAYPING_UNVERIFIED_TRANSACTION_API_ENDPOINT, + client: client, + apiToken: apiToken, + + baseUrl: PAYPING_HOST, + paymentEndpoint: PAYPING_REQUEST_API_ENDPOINT, + verifyEndpoint: PAYPING_VERIFY_API_ENDPOINT, + multiplePaymentEndpoint: PAYPING_MULTI_PAYMENT_API_ENDPOINT, + blockMoneyPaymentEndpoint: PAYPING_BLOCK_MONEY_PAYMENT_API_ENDPOINT, + unBlockMoneyPaymentEndpoint: PAYPING_UNBLOCK_MONEY_PAYMENT_API_ENDPOINT, + posEndpoint: PAYPING_POS_PAYMENT_API_ENDPOINT, + } + + if payping.apiToken == "" || len(payping.apiToken) < 10 { + log.Fatal("jwt token is invalid") + return nil, errors.New("jwt token is invalid") } if err := client.GetValidator().Struct(payping); err != nil { diff --git a/providers/payping/payping.go b/providers/payping/payping.go index b7c6ba3..2394cf5 100644 --- a/providers/payping/payping.go +++ b/providers/payping/payping.go @@ -5,11 +5,15 @@ import ( ) type Payping struct { - client client.Transporter - merchantID string `validate:"required"` + client client.Transporter - baseUrl string - requestEndpoint string - verifyEndpoint string - unverifiedEndpoint string + baseUrl string + paymentEndpoint string + verifyEndpoint string + multiplePaymentEndpoint string + blockMoneyPaymentEndpoint string + unBlockMoneyPaymentEndpoint string + posEndpoint string + + apiToken string } diff --git a/providers/payping/payping.json b/providers/payping/payping.json new file mode 100644 index 0000000..811ccb8 --- /dev/null +++ b/providers/payping/payping.json @@ -0,0 +1,4636 @@ +{ + "info": { + "_postman_id": "5722b2b4-0ba8-493e-ba23-56d96207b424", + "name": "مستندات سرویس‌های پلتفرم مالی پی‌پینگ", + "description": "مستندات سرویس‌های عمومی پلت‌فرم مالی پی‌پینگ\n\n لینک‌های پشتیبانی: تلگرام: [t.me/payping](t.me/payping) | ایمیل: [info@payping.ir]() | تلفن: 02175038797\n # مقدمه\n\n تمامی وب‌ سرویس‌های توضیح داده شده در این مستندات به صورت [RESTful](https://en.wikipedia.org/wiki/Representational_state_transfer) هستند و طبق همین چهارچوب باید با آنها ارتباط برقرار کرد. \n جهت رفع هرگونه مشکل و یا پرسش با پشتیبانی در تماس باشید.\n\n # POSTMAN\n برای راحتی کار شما فایل postman سرویس ها برای شما آماده شده است که می توانید از لینک زیر آن را دانلود کنید و با استفاده از اپلیکیشن دسکتاپ [postman](https://www.getpostman.com) از آن استفاده کنید\n \n [دانلود قالب postman](https://os.payping.ir/files/PayPing API - v1.postman_collection.json)\n\n # توضیحات تکمیلی برای تمام سرویس‌ها\n\n برای فراخوانی سرویس‌های صفحه‌بندی (pagination) اگر پارامتر ورودی ارسال نشود، حداکثر ۱۰ آیتم نمایش داده می‌شود و همچنین حداکثر تعداد دریافت آیتم به ازای هر درخواست ۵۰ عدد می‌باشد و بیشتر از آن را سرویس پشتیبانی نمی‌کند و در صورت نیاز به بارگزاری تمام آیتم‌های یک سرویس به صورت یکجا با ایمیل به بخش پشتیبانی در تماس باشید. همینطور توجه داشته باشین واحد پول در تمام سرویس‌ها تومان می‌باشد و منطقه زمانی تمامی‌ تاریخ و ساعت‌ها برابر با ساعت جهانی یا UTC می‌باشد.\n\n # نکاتی برای آپلود فایل‌ها\n\n برای آپلود هرگونه فایل اعم از عکس پروفایل کاربران و یا گزارشات پرداخت‌ها و ... می‌بایست که از [سرویس بارگذاری فایل](#tag/Upload) استفاده کنید.\n \n پس از انجام عملیات آپلود توسط سرویس بارگذاری فایل، تنها کافیست نام فایل آپلود شده که در خروجی سرویس به شما برگردانده می‌شود را ذخیره نمایید.\n\n # جدول کدهای دریافتی از هر سرویس\n\n بعد از ارسال هر درخواست به سمت سرور، از سمت ما طبق قواعد وب‌سرویس‌های RESTful یک کدی به شما بازگرداننده می‌شود.\n هر کد معنایی دارد که در جدول زیر توضیحات مربوطه را می‌بینید\n\n |شماره کد|توضیحات|\n |-------|--------|\n |`200`| عملیات با موفقیت انجام شد |\n |`400`| مشکلی در ارسال درخواست وجود دارد |\n |`500`| مشکلی در سرور رخ داده است |\n |`503`| سرور در حال حاضر قادر به پاسخگویی نمی‌باشد |\n |`401`| عدم دسترسی|\n |`403`| دسترسی غیر مجاز |\n |`404`| آیتم درخواستی مورد نظر موجود نمی‌باشد |\n\n", + "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" + }, + "item": [ + { + "name": "v1", + "item": [ + { + "name": "pay", + "item": [ + { + "name": "ساخت پرداخت", + "request": { + "auth": { + "type": "bearer" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"amount\": \"\",\n \"returnUrl\": \"\",\n \"payerIdentity\": \"\",\n \"payerName\": \"\",\n \"description\": \"\",\n \"clientRefId\": \"\"\n}" + }, + "url": { + "raw": "https://api.payping.ir/v1/pay", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "pay" + ] + }, + "description": "به کمک این متد می توانید برای یک نفر کد پرداخت ایجاد کنید.\r\nفراخوانی این متد برای شما یک کد 4 حرفی تولید می کند.\r\nپس از ساخت یک پرداخت، برای ورود به درگاه بانک تنها کافیست کاربر را به همراه کد ساخته شده به آدرس https://api.payping.ir/v1/pay/gotoipg/{code} هدایت نمایید.\r\nپس از اتمام فرایند در درگاه بانکی، کاربر به آدرسی که در ReturnUrl توسط شما مشخص شده است هدایت می شود\r\nکه حاوی دو پارامتر Refid, ClientRefId در قسمت QueryString آدرس می باشد.\r\nRefid مقداری است که برای تایید پرداخت (متد Verify) باید از آن استفاده کرد و \r\nClientRefId نیز همان مقداری است که در هنگام ساخته شدن پرداخت جدید از شما دریافت شده است." + }, + "response": [ + { + "name": "پرداخت پول جدید با موفقیت ساخته شد", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"amount\": \"\",\n \"returnUrl\": \"\",\n \"payerIdentity\": \"\",\n \"payerName\": \"\",\n \"description\": \"\",\n \"clientRefId\": \"\"\n}" + }, + "url": { + "raw": "https://api.payping.ir/v1/pay", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "pay" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"code\": \"\"\n}" + } + ] + }, + { + "name": "تایید پرداخت", + "request": { + "auth": { + "type": "bearer" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"amount\": \"\",\n \"refId\": \"\"\n}" + }, + "url": { + "raw": "https://api.payping.ir/v1/pay/verify", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "pay", + "verify" + ] + }, + "description": "از این متد برای تایید پرداخت موفق پس از بازگشت از درگاه بانکی استفاده می شود.\r\nدر صورتی که این متد تا 10 دقیقه پس از پرداخت فراخوانی نشود پرداخت باطل شده و پول به حساب پرداخت کننده باز خواهد گشت" + }, + "response": [ + { + "name": "تاییدیه آیتم مالی با موفقیت انجام شد", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"amount\": \"\",\n \"refId\": \"\"\n}" + }, + "url": { + "raw": "https://api.payping.ir/v1/pay/verify", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "pay", + "verify" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "text", + "header": [ + { + "key": "Content-Type", + "value": "text/plain" + } + ], + "cookie": [], + "body": "" + } + ] + }, + { + "name": "ساخت پرداخت تسهیمی", + "request": { + "auth": { + "type": "bearer" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"returnUrl\": \"\",\n \"payerName\": \"\",\n \"pairs\": [\n {\n \"amount\": \"\",\n \"userIdentity\": \"\",\n \"name\": \"\",\n \"description\": \"\"\n },\n {\n \"amount\": \"\",\n \"userIdentity\": \"\",\n \"name\": \"\",\n \"description\": \"\"\n }\n ],\n \"clientRefId\": \"\"\n}" + }, + "url": { + "raw": "https://api.payping.ir/v1/pay/multi", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "pay", + "multi" + ] + }, + "description": "به کمک این متد می توانید برای یک پرداخت چند نفره (تسهیمی) کد پرداخت ایجاد کنید.\r\nفراخوانی این متد برای شما یک کد 4 حرفی تولید می کند.\r\nپس از ساخت یک پرداخت، برای ورود به درگاه بانک تنها کافیست کاربر را به همراه کد ساخته شده به آدرس https://api.payping.ir/v1/pay/gotoipg/{code} هدایت نمایید.\r\nپس از اتمام فرایند در درگاه بانکی، کاربر به آدرسی که در ReturnUrl توسط شما مشخص شده است هدایت می شود\r\nکه حاوی دو پارامتر Refid, ClientRefId در قسمت QueryString آدرس می باشد.\r\nRefid مقداری است که برای تایید پرداخت (متد Verify) باید از آن استفاده کرد و \r\nClientRefId نیز همان مقداری است که در هنگام ساخته شدن پرداخت جدید از شما دریافت شده است." + }, + "response": [ + { + "name": "پرداخت پول جدید با موفقیت ساخته شد", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"returnUrl\": \"\",\n \"payerName\": \"\",\n \"pairs\": [\n {\n \"amount\": \"\",\n \"userIdentity\": \"\",\n \"name\": \"\",\n \"description\": \"\"\n },\n {\n \"amount\": \"\",\n \"userIdentity\": \"\",\n \"name\": \"\",\n \"description\": \"\"\n }\n ],\n \"clientRefId\": \"\"\n}" + }, + "url": { + "raw": "https://api.payping.ir/v1/pay/multi", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "pay", + "multi" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"code\": \"\"\n}" + } + ] + }, + { + "name": "ساخت پرداخت مسدود شده", + "request": { + "auth": { + "type": "bearer" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"returnUrl\": \"\",\n \"payerName\": \"\",\n \"pairs\": [\n {\n \"amount\": \"\",\n \"userIdentity\": \"\",\n \"name\": \"\",\n \"description\": \"\"\n },\n {\n \"amount\": \"\",\n \"userIdentity\": \"\",\n \"name\": \"\",\n \"description\": \"\"\n }\n ],\n \"clientRefId\": \"\"\n}" + }, + "url": { + "raw": "https://api.payping.ir/v1/pay/BlockMoney", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "pay", + "BlockMoney" + ] + }, + "description": "به کمک این متد می تواندی برای پرادخت به چند نفر، کد پرداخت تولید کنید، که \r\nاین یک پرادخت مسدود شده می باشد و امکان جابجایی آن تا فراخوانی متد UnBlockMoney امکان پذیر نمی باشد." + }, + "response": [ + { + "name": "پرداخت پول جدید با موفقیت ساخته شد", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"returnUrl\": \"\",\n \"payerName\": \"\",\n \"pairs\": [\n {\n \"amount\": \"\",\n \"userIdentity\": \"\",\n \"name\": \"\",\n \"description\": \"\"\n },\n {\n \"amount\": \"\",\n \"userIdentity\": \"\",\n \"name\": \"\",\n \"description\": \"\"\n }\n ],\n \"clientRefId\": \"\"\n}" + }, + "url": { + "raw": "https://api.payping.ir/v1/pay/BlockMoney", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "pay", + "BlockMoney" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"code\": \"\"\n}" + } + ] + }, + { + "name": "آزاد سازی پول مسدود شده", + "request": { + "auth": { + "type": "bearer" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"clientId\": \"\",\n \"code\": \"\"\n}" + }, + "url": { + "raw": "https://api.payping.ir/v1/pay/UnBlockMoney", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "pay", + "UnBlockMoney" + ] + }, + "description": "به کمک این متد، می توانید پول مسدود شده توسط متد BlockMoney را از حالت مسدودی آزاد نمایید." + }, + "response": [ + { + "name": "پرداخت پول جدید با موفقیت ساخته شد", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"clientId\": \"\",\n \"code\": \"\"\n}" + }, + "url": { + "raw": "https://api.payping.ir/v1/pay/UnBlockMoney", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "pay", + "UnBlockMoney" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"code\": \"\"\n}" + } + ] + }, + { + "name": "برای لغو کردن یک کد پرداخت می توانید از این متد استفاده کنید", + "request": { + "auth": { + "type": "bearer" + }, + "method": "DELETE", + "header": [], + "url": { + "raw": "https://api.payping.ir/v1/pay/:code", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "pay", + ":code" + ], + "variable": [ + { + "key": "code", + "value": "", + "description": "کد پرداخت" + } + ] + } + }, + "response": [ + { + "name": "عملیات لغو با موفقیت انجام شد", + "originalRequest": { + "method": "DELETE", + "header": [], + "url": { + "raw": "https://api.payping.ir/v1/pay/", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "pay", + "" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "text", + "header": [ + { + "key": "Content-Type", + "value": "text/plain" + } + ], + "cookie": [], + "body": "" + } + ] + }, + { + "name": "ساخت پرداخت شناسه دار", + "request": { + "auth": { + "type": "bearer" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"amount\": \"\",\n \"returnUrl\": \"\",\n \"payerIdentity\": \"\",\n \"payerName\": \"\",\n \"description\": \"\",\n \"clientRefId\": \"\"\n}" + }, + "url": { + "raw": "https://api.payping.ir/v1/pos", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "pos" + ] + }, + "description": "از این متد می تواند برای ساخت یک پرادخت شناسه دار که به کمک دستگاه Pos پرداخت آن انجام می شود، استفاده کرد" + }, + "response": [ + { + "name": "پرداخت پول جدید با موفقیت ساخته شد", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"amount\": \"\",\n \"returnUrl\": \"\",\n \"payerIdentity\": \"\",\n \"payerName\": \"\",\n \"description\": \"\",\n \"clientRefId\": \"\"\n}" + }, + "url": { + "raw": "https://api.payping.ir/v1/pos", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "pos" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"itd\": \"\",\n \"code\": \"\"\n}" + } + ] + } + ], + "_postman_isSubFolder": true + }, + { + "name": "report", + "item": [ + { + "name": "نمایش جزئیات تراکنش", + "request": { + "auth": { + "type": "bearer" + }, + "method": "GET", + "header": [], + "url": { + "raw": "https://api.payping.ir/v1/report/:code", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "report", + ":code" + ], + "variable": [ + { + "key": "code", + "value": "", + "description": "کد پرداخت" + } + ] + } + }, + "response": [ + { + "name": "جزئیات تراکنش با موفقیت ساخته شد", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "https://api.payping.ir/v1/report/", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "report", + "" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"amount\": \"\",\n \"reqDate\": \"\",\n \"payDate\": \"\",\n \"isRequest\": \"\",\n \"isPaid\": \"\",\n \"description\": \"\",\n \"payerIdentity\": \"\",\n \"platform\": \"\",\n \"browser\": \"\",\n \"rrn\": \"\",\n \"clientId\": \"\",\n \"clientRefId\": \"\",\n \"invoiceNo\": \"\",\n \"wage\": \"\",\n \"ipgName\": \"\",\n \"isBlocked\": \"\",\n \"name\": \"\"\n}" + } + ] + }, + { + "name": "گزارش تراکنش ها", + "request": { + "auth": { + "type": "bearer" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"offset\": \"\",\n \"limit\": \"\",\n \"clientsInfos\": [\n {\n \"clientId\": \"\",\n \"clientRefId\": \"\"\n },\n {\n \"clientId\": \"\",\n \"clientRefId\": \"\"\n }\n ],\n \"filter\": [\n \"\",\n \"\"\n ],\n \"transactionType\": \"\",\n \"fromDate\": \"\",\n \"toDate\": \"\"\n}" + }, + "url": { + "raw": "https://api.payping.ir/v1/report/TransactionReport", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "report", + "TransactionReport" + ] + }, + "description": "از این متد برای نمایش جزئیات تراکنش های کاربر استفاده می شود" + }, + "response": [ + { + "name": "لیسات تراکنش ها با موفقیت ساخته شد", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"offset\": \"\",\n \"limit\": \"\",\n \"clientsInfos\": [\n {\n \"clientId\": \"\",\n \"clientRefId\": \"\"\n },\n {\n \"clientId\": \"\",\n \"clientRefId\": \"\"\n }\n ],\n \"filter\": [\n \"\",\n \"\"\n ],\n \"transactionType\": \"\",\n \"fromDate\": \"\",\n \"toDate\": \"\"\n}" + }, + "url": { + "raw": "https://api.payping.ir/v1/report/TransactionReport", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "report", + "TransactionReport" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "[\n {\n \"amount\": \"\",\n \"payDate\": \"\",\n \"isPaid\": \"\",\n \"description\": \"\",\n \"name\": \"\",\n \"payerIdentity\": \"\",\n \"isRequest\": \"\",\n \"code\": \"\",\n \"clientId\": \"\",\n \"clientRefId\": \"\",\n \"invoiceNo\": \"\",\n \"createdDate\": \"\"\n },\n {\n \"amount\": \"\",\n \"payDate\": \"\",\n \"isPaid\": \"\",\n \"description\": \"\",\n \"name\": \"\",\n \"payerIdentity\": \"\",\n \"isRequest\": \"\",\n \"code\": \"\",\n \"clientId\": \"\",\n \"clientRefId\": \"\",\n \"invoiceNo\": \"\",\n \"createdDate\": \"\"\n }\n]" + } + ] + }, + { + "name": "تعداد تراکنش ها", + "request": { + "auth": { + "type": "bearer" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"clientsInfos\": [\n {\n \"clientId\": \"\",\n \"clientRefId\": \"\"\n },\n {\n \"clientId\": \"\",\n \"clientRefId\": \"\"\n }\n ],\n \"filter\": [\n \"\",\n \"\"\n ],\n \"transactionType\": \"\",\n \"fromDate\": \"\",\n \"toDate\": \"\"\n}" + }, + "url": { + "raw": "https://api.payping.ir/v1/report/TransactionReportCount", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "report", + "TransactionReportCount" + ] + }, + "description": "از این متد برای نمایش تعداد تراکنش های برگشت داده شده از متد TransactionReport استفاده می شود" + }, + "response": [ + { + "name": "تعداد تراکنش ها با موفقیت ساخته شد", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"clientsInfos\": [\n {\n \"clientId\": \"\",\n \"clientRefId\": \"\"\n },\n {\n \"clientId\": \"\",\n \"clientRefId\": \"\"\n }\n ],\n \"filter\": [\n \"\",\n \"\"\n ],\n \"transactionType\": \"\",\n \"fromDate\": \"\",\n \"toDate\": \"\"\n}" + }, + "url": { + "raw": "https://api.payping.ir/v1/report/TransactionReportCount", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "report", + "TransactionReportCount" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"result\": \"\"\n}" + } + ] + }, + { + "name": "دریافت لیست تسویه حساب", + "request": { + "auth": { + "type": "bearer" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"offset\": \"\",\n \"limit\": \"\",\n \"clientsInfos\": [\n {\n \"clientId\": \"\",\n \"clientRefId\": \"\"\n },\n {\n \"clientId\": \"\",\n \"clientRefId\": \"\"\n }\n ],\n \"filter\": [\n \"\",\n \"\"\n ],\n \"transactionType\": \"\",\n \"fromDate\": \"\",\n \"toDate\": \"\"\n}" + }, + "url": { + "raw": "https://api.payping.ir/v1/report/WithdrawTransactions", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "report", + "WithdrawTransactions" + ] + }, + "description": "به کمک این متد می توانید لیست درخواست های تسویه شده و در انتظار تسویه را نمایش دهید" + }, + "response": [ + { + "name": "جزئیات تسویه با موفقیت نمایش داده شد", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"offset\": \"\",\n \"limit\": \"\",\n \"clientsInfos\": [\n {\n \"clientId\": \"\",\n \"clientRefId\": \"\"\n },\n {\n \"clientId\": \"\",\n \"clientRefId\": \"\"\n }\n ],\n \"filter\": [\n \"\",\n \"\"\n ],\n \"transactionType\": \"\",\n \"fromDate\": \"\",\n \"toDate\": \"\"\n}" + }, + "url": { + "raw": "https://api.payping.ir/v1/report/WithdrawTransactions", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "report", + "WithdrawTransactions" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "[\n {\n \"reqDate\": \"\",\n \"code\": \"\",\n \"isRepaid\": \"\",\n \"repayDate\": \"\",\n \"amount\": \"\"\n },\n {\n \"reqDate\": \"\",\n \"code\": \"\",\n \"isRepaid\": \"\",\n \"repayDate\": \"\",\n \"amount\": \"\"\n }\n]" + } + ] + }, + { + "name": "تعداد لیست تسویه حساب", + "request": { + "auth": { + "type": "bearer" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"clientsInfos\": [\n {\n \"clientId\": \"\",\n \"clientRefId\": \"\"\n },\n {\n \"clientId\": \"\",\n \"clientRefId\": \"\"\n }\n ],\n \"filter\": [\n \"\",\n \"\"\n ],\n \"transactionType\": \"\",\n \"fromDate\": \"\",\n \"toDate\": \"\"\n}" + }, + "url": { + "raw": "https://api.payping.ir/v1/report/WithdrawTransactionsCount", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "report", + "WithdrawTransactionsCount" + ] + }, + "description": "به کمک این متد می توانید تعداد لیست درخواست های تسویه شده و در انتظار تسویه را که از متد WithdrawTransactions دریافت کرده اید را نمایش دهید" + }, + "response": [ + { + "name": "جزئیات تسویه با موفقیت نمایش داده شد", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"clientsInfos\": [\n {\n \"clientId\": \"\",\n \"clientRefId\": \"\"\n },\n {\n \"clientId\": \"\",\n \"clientRefId\": \"\"\n }\n ],\n \"filter\": [\n \"\",\n \"\"\n ],\n \"transactionType\": \"\",\n \"fromDate\": \"\",\n \"toDate\": \"\"\n}" + }, + "url": { + "raw": "https://api.payping.ir/v1/report/WithdrawTransactionsCount", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "report", + "WithdrawTransactionsCount" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"result\": \"\"\n}" + } + ] + } + ], + "_postman_isSubFolder": true + }, + { + "name": "withdraw", + "item": [ + { + "name": "درخواست تسویه حساب", + "request": { + "auth": { + "type": "bearer" + }, + "method": "POST", + "header": [], + "url": { + "raw": "https://api.payping.ir/v1/withdraw/:amount", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "withdraw", + ":amount" + ], + "variable": [ + { + "key": "amount", + "value": "", + "description": "مبلغ تسویه حساب" + } + ] + }, + "description": "به کمک این متد می توانید یک درخواست تسویه با مبلغ دلخواه ایجاد نمایید" + }, + "response": [ + { + "name": "تسویه حساب جدید با موفقیت ساخته شد", + "originalRequest": { + "method": "POST", + "header": [], + "url": { + "raw": "https://api.payping.ir/v1/withdraw/", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "withdraw", + "" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"code\": \"\"\n}" + } + ] + }, + { + "name": "نمایش جزئیات درخواست تسویه", + "request": { + "auth": { + "type": "bearer" + }, + "method": "GET", + "header": [], + "url": { + "raw": "https://api.payping.ir/v1/withdraw/:code", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "withdraw", + ":code" + ], + "variable": [ + { + "key": "code", + "value": "", + "description": "کد درخواست تسویه" + } + ] + }, + "description": "از این متد برای نمایش لیست تسویه ها" + }, + "response": [ + { + "name": "جزئیات تسویه با موفقیت نمایش داده شد", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "https://api.payping.ir/v1/withdraw/", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "withdraw", + "" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"amount\": \"\",\n \"reqDate\": \"\",\n \"isRepaid\": \"\",\n \"repayDate\": \"\"\n}" + } + ] + } + ], + "_postman_isSubFolder": true + }, + { + "name": "customer", + "item": [ + { + "name": "مشتری جدید", + "request": { + "auth": { + "type": "bearer" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"firstName\": \"\",\n \"lastName\": \"\",\n \"userPhotoFileId\": \"\",\n \"email\": \"\",\n \"phone\": \"\",\n \"businessName\": \"\",\n \"additionalInfo\": \"\",\n \"zipCode\": \"\",\n \"state\": \"\",\n \"city\": \"\",\n \"location\": \"\",\n \"memo\": \"\",\n \"isBusiness\": \"\",\n \"nationalId\": \"\"\n}" + }, + "url": { + "raw": "https://api.payping.ir/v1/customer", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "customer" + ] + } + }, + "response": [ + { + "name": "نمایش مشخصات مشتری", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"firstName\": \"\",\n \"lastName\": \"\",\n \"userPhotoFileId\": \"\",\n \"email\": \"\",\n \"phone\": \"\",\n \"businessName\": \"\",\n \"additionalInfo\": \"\",\n \"zipCode\": \"\",\n \"state\": \"\",\n \"city\": \"\",\n \"location\": \"\",\n \"memo\": \"\",\n \"isBusiness\": \"\",\n \"nationalId\": \"\"\n}" + }, + "url": { + "raw": "https://api.payping.ir/v1/customer", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "customer" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"code\": \"\",\n \"firstName\": \"\",\n \"lastName\": \"\",\n \"userPhotoFileAddress\": \"\",\n \"userPhotoFileId\": \"\",\n \"email\": \"\",\n \"phone\": \"\",\n \"businessName\": \"\",\n \"additionalInfo\": \"\",\n \"memo\": \"\",\n \"zipCode\": \"\",\n \"state\": \"\",\n \"city\": \"\",\n \"location\": \"\",\n \"isBusiness\": \"\",\n \"nationalId\": \"\"\n}" + } + ] + }, + { + "name": "لیست مشتریان", + "request": { + "auth": { + "type": "bearer" + }, + "method": "GET", + "header": [], + "url": { + "raw": "https://api.payping.ir/v1/customer/List?offset=&limit=10&search=&customerType=&withPhoto=&code=", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "customer", + "List" + ], + "query": [ + { + "key": "offset", + "value": "", + "description": "شروع صفحه از شماره 1" + }, + { + "key": "limit", + "value": "10", + "description": "تعداد سطر بازگشت داده ها مثال : 10" + }, + { + "key": "search", + "value": "", + "description": "متن مورد نظر جهت جستجو" + }, + { + "key": "customerType", + "value": "", + "description": "نوع مشتری - حقیقی یا حقوقی" + }, + { + "key": "withPhoto", + "value": "", + "description": "با آدرس تصویر مشتری" + }, + { + "key": "code", + "value": "", + "description": "کد مشتری" + } + ] + } + }, + "response": [ + { + "name": "نمایش لیست مشتریان", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "https://api.payping.ir/v1/customer/List?offset=&limit=10&search=&customerType=&withPhoto=&code=", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "customer", + "List" + ], + "query": [ + { + "key": "offset", + "value": "" + }, + { + "key": "limit", + "value": "10" + }, + { + "key": "search", + "value": "" + }, + { + "key": "customerType", + "value": "" + }, + { + "key": "withPhoto", + "value": "" + }, + { + "key": "code", + "value": "" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "[\n {\n \"code\": \"\",\n \"email\": \"\",\n \"phone\": \"\",\n \"firstName\": \"\",\n \"lastName\": \"\",\n \"businessName\": \"\",\n \"nationalId\": \"\",\n \"isBusiness\": \"\"\n },\n {\n \"code\": \"\",\n \"email\": \"\",\n \"phone\": \"\",\n \"firstName\": \"\",\n \"lastName\": \"\",\n \"businessName\": \"\",\n \"nationalId\": \"\",\n \"isBusiness\": \"\"\n }\n]" + } + ] + }, + { + "name": "تعداد مشتریان", + "request": { + "auth": { + "type": "bearer" + }, + "method": "GET", + "header": [], + "url": { + "raw": "https://api.payping.ir/v1/customer/ListCount?search=&customerType=&code=", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "customer", + "ListCount" + ], + "query": [ + { + "key": "search", + "value": "", + "description": "متن مورد نظر جهت جستجو" + }, + { + "key": "customerType", + "value": "", + "description": "نوع مشتری - حقیقی یا حقوقی" + }, + { + "key": "code", + "value": "", + "description": "کد مشتری" + } + ] + } + }, + "response": [ + { + "name": "نمایش تعداد مشتریان", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "https://api.payping.ir/v1/customer/ListCount?search=&customerType=&code=", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "customer", + "ListCount" + ], + "query": [ + { + "key": "search", + "value": "" + }, + { + "key": "customerType", + "value": "" + }, + { + "key": "code", + "value": "" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"count\": \"\"\n}" + } + ] + }, + { + "name": "مشخصات مشتری", + "request": { + "auth": { + "type": "bearer" + }, + "method": "GET", + "header": [], + "url": { + "raw": "https://api.payping.ir/v1/customer/:code", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "customer", + ":code" + ], + "variable": [ + { + "key": "code", + "value": "", + "description": "کد مشتری ارسال نمایید" + } + ] + } + }, + "response": [ + { + "name": "نمایش مشخصات مشتری", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "https://api.payping.ir/v1/customer/", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "customer", + "" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"code\": \"\",\n \"firstName\": \"\",\n \"lastName\": \"\",\n \"userPhotoFileAddress\": \"\",\n \"userPhotoFileId\": \"\",\n \"email\": \"\",\n \"phone\": \"\",\n \"businessName\": \"\",\n \"additionalInfo\": \"\",\n \"memo\": \"\",\n \"zipCode\": \"\",\n \"state\": \"\",\n \"city\": \"\",\n \"location\": \"\",\n \"isBusiness\": \"\",\n \"nationalId\": \"\"\n}" + } + ] + }, + { + "name": "بروزرسانی مشخصات مشتری", + "request": { + "auth": { + "type": "bearer" + }, + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"code\": \"\",\n \"firstName\": \"\",\n \"lastName\": \"\",\n \"userPhotoFileId\": \"\",\n \"email\": \"\",\n \"phone\": \"\",\n \"businessName\": \"\",\n \"additionalInfo\": \"\",\n \"zipCode\": \"\",\n \"state\": \"\",\n \"city\": \"\",\n \"location\": \"\",\n \"memo\": \"\",\n \"isBusiness\": \"\",\n \"nationalId\": \"\"\n}" + }, + "url": { + "raw": "https://api.payping.ir/v1/customer/:code", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "customer", + ":code" + ], + "variable": [ + { + "key": "code", + "value": "", + "description": "کلید یکتا مشتری" + } + ] + } + }, + "response": [ + { + "name": "نمایش مشخصات مشتری", + "originalRequest": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"code\": \"\",\n \"firstName\": \"\",\n \"lastName\": \"\",\n \"userPhotoFileId\": \"\",\n \"email\": \"\",\n \"phone\": \"\",\n \"businessName\": \"\",\n \"additionalInfo\": \"\",\n \"zipCode\": \"\",\n \"state\": \"\",\n \"city\": \"\",\n \"location\": \"\",\n \"memo\": \"\",\n \"isBusiness\": \"\",\n \"nationalId\": \"\"\n}" + }, + "url": { + "raw": "https://api.payping.ir/v1/customer/", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "customer", + "" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"code\": \"\",\n \"firstName\": \"\",\n \"lastName\": \"\",\n \"userPhotoFileAddress\": \"\",\n \"userPhotoFileId\": \"\",\n \"email\": \"\",\n \"phone\": \"\",\n \"businessName\": \"\",\n \"additionalInfo\": \"\",\n \"memo\": \"\",\n \"zipCode\": \"\",\n \"state\": \"\",\n \"city\": \"\",\n \"location\": \"\",\n \"isBusiness\": \"\",\n \"nationalId\": \"\"\n}" + } + ] + }, + { + "name": "حذف مشتری", + "request": { + "auth": { + "type": "bearer" + }, + "method": "DELETE", + "header": [], + "url": { + "raw": "https://api.payping.ir/v1/customer/:code", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "customer", + ":code" + ], + "variable": [ + { + "key": "code", + "value": "", + "description": "کلید یکتا مشتری" + } + ] + } + }, + "response": [ + { + "name": "نمایش کلید یکتای مشتری", + "originalRequest": { + "method": "DELETE", + "header": [], + "url": { + "raw": "https://api.payping.ir/v1/customer/", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "customer", + "" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "\"\"" + } + ] + } + ], + "_postman_isSubFolder": true + }, + { + "name": "coupon", + "item": [ + { + "name": "ساخت یک کد تخفیف جدید", + "request": { + "auth": { + "type": "bearer" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"name\": \"\",\n \"userCouponCode\": \"\",\n \"type\": \"\",\n \"amount\": \"\",\n \"redeemDate\": \"\",\n \"redeemTime\": \"\",\n \"maxRedemption\": \"\",\n \"isActive\": \"\",\n \"activeProductCode\": [\n \"\",\n \"\"\n ]\n}" + }, + "url": { + "raw": "https://api.payping.ir/v1/coupon", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "coupon" + ] + } + }, + "response": [ + { + "name": "کد تخفیف با موفقیت ساخته شد", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"name\": \"\",\n \"userCouponCode\": \"\",\n \"type\": \"\",\n \"amount\": \"\",\n \"redeemDate\": \"\",\n \"redeemTime\": \"\",\n \"maxRedemption\": \"\",\n \"isActive\": \"\",\n \"activeProductCode\": [\n \"\",\n \"\"\n ]\n}" + }, + "url": { + "raw": "https://api.payping.ir/v1/coupon", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "coupon" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"code\": \"\"\n}" + } + ] + }, + { + "name": "بروزرسانی کد تخفیف", + "request": { + "auth": { + "type": "bearer" + }, + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"name\": \"\",\n \"userCouponCode\": \"\",\n \"type\": \"\",\n \"amount\": \"\",\n \"code\": \"\",\n \"redeemDate\": \"\",\n \"redeemTime\": \"\",\n \"maxRedemption\": \"\",\n \"isActive\": \"\",\n \"activeProductCode\": [\n \"\",\n \"\"\n ]\n}" + }, + "url": { + "raw": "https://api.payping.ir/v1/coupon", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "coupon" + ] + } + }, + "response": [ + { + "name": "کد تخفیف با موفقیت بروزرسانی شد", + "originalRequest": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"name\": \"\",\n \"userCouponCode\": \"\",\n \"type\": \"\",\n \"amount\": \"\",\n \"code\": \"\",\n \"redeemDate\": \"\",\n \"redeemTime\": \"\",\n \"maxRedemption\": \"\",\n \"isActive\": \"\",\n \"activeProductCode\": [\n \"\",\n \"\"\n ]\n}" + }, + "url": { + "raw": "https://api.payping.ir/v1/coupon", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "coupon" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "text", + "header": [ + { + "key": "Content-Type", + "value": "text/plain" + } + ], + "cookie": [], + "body": "" + } + ] + }, + { + "name": "نمایش لیست کدهای تخفیف", + "request": { + "auth": { + "type": "bearer" + }, + "method": "GET", + "header": [], + "url": { + "raw": "https://api.payping.ir/v1/coupon/List?offset=&limit=10&witharchived=&search=&productcode=", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "coupon", + "List" + ], + "query": [ + { + "key": "offset", + "value": "", + "description": "شماره ابتدا لیست" + }, + { + "key": "limit", + "value": "10", + "description": "شماره انتها لیست" + }, + { + "key": "witharchived", + "value": "", + "description": "اضافه شدن کدهای تخفیف‌ آرشیو شده" + }, + { + "key": "search", + "value": "", + "description": "کیلدواژه جستجو در کدهای تخفیف" + }, + { + "key": "productcode", + "value": "" + } + ] + } + }, + "response": [ + { + "name": "لیست کدهای تخفیف با موفقیت نمایش داده شد", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "https://api.payping.ir/v1/coupon/List?offset=&limit=10&witharchived=&search=&productcode=", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "coupon", + "List" + ], + "query": [ + { + "key": "offset", + "value": "" + }, + { + "key": "limit", + "value": "10" + }, + { + "key": "witharchived", + "value": "" + }, + { + "key": "search", + "value": "" + }, + { + "key": "productcode", + "value": "" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "[\n {\n \"name\": \"\",\n \"type\": \"\",\n \"amount\": \"\",\n \"code\": \"\",\n \"isActive\": \"\",\n \"activeProductCode\": \"\",\n \"activeProductName\": [\n \"\",\n \"\"\n ],\n \"userCouponCode\": \"\",\n \"amountDisplay\": \"\"\n },\n {\n \"name\": \"\",\n \"type\": \"\",\n \"amount\": \"\",\n \"code\": \"\",\n \"isActive\": \"\",\n \"activeProductCode\": \"\",\n \"activeProductName\": [\n \"\",\n \"\"\n ],\n \"userCouponCode\": \"\",\n \"amountDisplay\": \"\"\n }\n]" + } + ] + }, + { + "name": "دریافت تعداد کدهای تخفیف", + "request": { + "auth": { + "type": "bearer" + }, + "method": "GET", + "header": [], + "url": { + "raw": "https://api.payping.ir/v1/coupon/ListCount?witharchived=&search=", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "coupon", + "ListCount" + ], + "query": [ + { + "key": "witharchived", + "value": "" + }, + { + "key": "search", + "value": "" + } + ] + } + }, + "response": [ + { + "name": "تعداد کدهای تخفیف با موفقیت نمایش داده شد", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "https://api.payping.ir/v1/coupon/ListCount?witharchived=&search=", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "coupon", + "ListCount" + ], + "query": [ + { + "key": "witharchived", + "value": "" + }, + { + "key": "search", + "value": "" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"count\": \"\"\n}" + } + ] + }, + { + "name": "نمایش یک کد تخفیف", + "request": { + "auth": { + "type": "bearer" + }, + "method": "GET", + "header": [], + "url": { + "raw": "https://api.payping.ir/v1/coupon/:code", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "coupon", + ":code" + ], + "variable": [ + { + "key": "code", + "value": "", + "description": "شناسه کد تخفیف" + } + ] + } + }, + "response": [ + { + "name": "کد تخفیف با موفقیت نمایش داده شد", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "https://api.payping.ir/v1/coupon/", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "coupon", + "" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"name\": \"\",\n \"type\": \"\",\n \"amount\": \"\",\n \"code\": \"\",\n \"redeemDate\": \"\",\n \"redeemTime\": \"\",\n \"maxRedemption\": \"\",\n \"isActive\": \"\",\n \"activeProductCode\": \"\",\n \"isArchived\": \"\",\n \"userCouponCode\": \"\",\n \"buyerCounts\": \"\",\n \"buyerSum\": \"\"\n}" + } + ] + }, + { + "name": "حذف یک کد تخفیف", + "request": { + "auth": { + "type": "bearer" + }, + "method": "DELETE", + "header": [], + "url": { + "raw": "https://api.payping.ir/v1/coupon/:code", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "coupon", + ":code" + ], + "variable": [ + { + "key": "code", + "value": "", + "description": "شناسه کد تخفیف" + } + ] + } + }, + "response": [ + { + "name": "کد تخفیف با موفقیت حذف شد", + "originalRequest": { + "method": "DELETE", + "header": [], + "url": { + "raw": "https://api.payping.ir/v1/coupon/", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "coupon", + "" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "text", + "header": [ + { + "key": "Content-Type", + "value": "text/plain" + } + ], + "cookie": [], + "body": "" + } + ] + }, + { + "name": "دریافت تعداد خرید‌های یک کد تخفیف", + "request": { + "auth": { + "type": "bearer" + }, + "method": "GET", + "header": [], + "url": { + "raw": "https://api.payping.ir/v1/coupon/:couponCode/BuyersListCount", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "coupon", + ":couponCode", + "BuyersListCount" + ], + "variable": [ + { + "key": "couponCode", + "value": "", + "description": "شناسه کد تخفیف" + } + ] + } + }, + "response": [ + { + "name": "تعداد خریدهای یک کد تخفیف با موفقیت نمایش داده شد", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "https://api.payping.ir/v1/coupon//BuyersListCount", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "coupon", + "", + "BuyersListCount" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"count\": \"\"\n}" + } + ] + }, + { + "name": "دریافت لیست پرداخت‌های انجام شده یک کد تخفیف", + "request": { + "auth": { + "type": "bearer" + }, + "method": "GET", + "header": [], + "url": { + "raw": "https://api.payping.ir/v1/coupon/:couponCode/BuyersList?offset=&limit=10", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "coupon", + ":couponCode", + "BuyersList" + ], + "query": [ + { + "key": "offset", + "value": "", + "description": "شماره ابتدا لیست" + }, + { + "key": "limit", + "value": "10", + "description": "شماره انتها لیست" + } + ], + "variable": [ + { + "key": "couponCode", + "value": "", + "description": "شناسه کد تخفیف" + } + ] + } + }, + "response": [ + { + "name": "لیست خریدهای این کد تخفیف با موفقیت نمایش داده شد", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "https://api.payping.ir/v1/coupon//BuyersList?offset=&limit=10", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "coupon", + "", + "BuyersList" + ], + "query": [ + { + "key": "offset", + "value": "" + }, + { + "key": "limit", + "value": "10" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "[\n {\n \"code\": \"\",\n \"amount\": \"\",\n \"addressLine\": \"\",\n \"postalCode\": \"\",\n \"firstName\": \"\",\n \"lastName\": \"\",\n \"email\": \"\",\n \"city\": \"\",\n \"phone\": \"\",\n \"customDescription\": \"\",\n \"permanLinkCode\": \"\",\n \"productInfo\": {\n \"code\": \"\",\n \"title\": \"\",\n \"description\": \"\",\n \"realAmount\": \"\"\n },\n \"couponCode\": \"\",\n \"productCode\": \"\",\n \"campaignCode\": \"\",\n \"isPaid\": \"\",\n \"payerId\": \"\",\n \"invoiceNo\": \"\",\n \"payDate\": \"\",\n \"fullName\": \"\"\n },\n {\n \"code\": \"\",\n \"amount\": \"\",\n \"addressLine\": \"\",\n \"postalCode\": \"\",\n \"firstName\": \"\",\n \"lastName\": \"\",\n \"email\": \"\",\n \"city\": \"\",\n \"phone\": \"\",\n \"customDescription\": \"\",\n \"permanLinkCode\": \"\",\n \"productInfo\": {\n \"code\": \"\",\n \"title\": \"\",\n \"description\": \"\",\n \"realAmount\": \"\"\n },\n \"couponCode\": \"\",\n \"productCode\": \"\",\n \"campaignCode\": \"\",\n \"isPaid\": \"\",\n \"payerId\": \"\",\n \"invoiceNo\": \"\",\n \"payDate\": \"\",\n \"fullName\": \"\"\n }\n]" + } + ] + } + ], + "_postman_isSubFolder": true + }, + { + "name": "product", + "item": [ + { + "name": "ساخت یک آیتم‌ مالی جدید", + "request": { + "auth": { + "type": "bearer" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"title\": \"\",\n \"description\": \"\",\n \"amount\": \"\",\n \"defineAmountByUser\": \"\",\n \"quantity\": \"\",\n \"haveTax\": \"\",\n \"unlimited\": \"\",\n \"imageLink\": \"\"\n}" + }, + "url": { + "raw": "https://api.payping.ir/v1/product", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "product" + ] + } + }, + "response": [ + { + "name": "آیتم مالی با موفقیت ساخته شد", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"title\": \"\",\n \"description\": \"\",\n \"amount\": \"\",\n \"defineAmountByUser\": \"\",\n \"quantity\": \"\",\n \"haveTax\": \"\",\n \"unlimited\": \"\",\n \"imageLink\": \"\"\n}" + }, + "url": { + "raw": "https://api.payping.ir/v1/product", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "product" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"code\": \"\"\n}" + } + ] + }, + { + "name": "بروزرسانی آیتم مالی", + "request": { + "auth": { + "type": "bearer" + }, + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"amount\": \"\",\n \"title\": \"\",\n \"code\": \"\",\n \"description\": \"\",\n \"defineAmountByUser\": \"\",\n \"haveTax\": \"\",\n \"quantity\": \"\",\n \"unlimited\": \"\",\n \"imageLink\": \"\"\n}" + }, + "url": { + "raw": "https://api.payping.ir/v1/product", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "product" + ] + } + }, + "response": [ + { + "name": "آیتم‌ مالی با موفقیت بروزرسانی شد", + "originalRequest": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"amount\": \"\",\n \"title\": \"\",\n \"code\": \"\",\n \"description\": \"\",\n \"defineAmountByUser\": \"\",\n \"haveTax\": \"\",\n \"quantity\": \"\",\n \"unlimited\": \"\",\n \"imageLink\": \"\"\n}" + }, + "url": { + "raw": "https://api.payping.ir/v1/product", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "product" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "text", + "header": [ + { + "key": "Content-Type", + "value": "text/plain" + } + ], + "cookie": [], + "body": "" + } + ] + }, + { + "name": "دریافت لیست آیتم‌های مالی", + "request": { + "auth": { + "type": "bearer" + }, + "method": "GET", + "header": [], + "url": { + "raw": "https://api.payping.ir/v1/product/List?offset=&limit=10&witharchived=&search=", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "product", + "List" + ], + "query": [ + { + "key": "offset", + "value": "", + "description": "شماره ابتدا لیست" + }, + { + "key": "limit", + "value": "10", + "description": "شماره انتها لیست" + }, + { + "key": "witharchived", + "value": "", + "description": "اضافه شدن آیتم‌های آرشیو شده" + }, + { + "key": "search", + "value": "", + "description": "کیلدواژه جستجو در آیتم‌های مالی" + } + ] + } + }, + "response": [ + { + "name": "لیست آیتم‌های مالی با موفقیت نمایش داده شد", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "https://api.payping.ir/v1/product/List?offset=&limit=10&witharchived=&search=", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "product", + "List" + ], + "query": [ + { + "key": "offset", + "value": "" + }, + { + "key": "limit", + "value": "10" + }, + { + "key": "witharchived", + "value": "" + }, + { + "key": "search", + "value": "" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "[\n {\n \"amount\": \"\",\n \"title\": \"\",\n \"code\": \"\",\n \"quantity\": \"\",\n \"unlimited\": \"\",\n \"defineAmountByUser\": \"\",\n \"amountDisplay\": \"\",\n \"quantityViewModel\": \"\",\n \"isActive\": \"\",\n \"haveTax\": \"\",\n \"havePerma\": \"\"\n },\n {\n \"amount\": \"\",\n \"title\": \"\",\n \"code\": \"\",\n \"quantity\": \"\",\n \"unlimited\": \"\",\n \"defineAmountByUser\": \"\",\n \"amountDisplay\": \"\",\n \"quantityViewModel\": \"\",\n \"isActive\": \"\",\n \"haveTax\": \"\",\n \"havePerma\": \"\"\n }\n]" + } + ] + }, + { + "name": "نمایش یک آیتم مالی", + "request": { + "auth": { + "type": "bearer" + }, + "method": "GET", + "header": [], + "url": { + "raw": "https://api.payping.ir/v1/product/:code", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "product", + ":code" + ], + "variable": [ + { + "key": "code", + "value": "", + "description": "کد آیتم مالی" + } + ] + } + }, + "response": [ + { + "name": "آیتم مالی با موفقیت نمایش داده شد", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "https://api.payping.ir/v1/product/", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "product", + "" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"code\": \"\",\n \"title\": \"\",\n \"description\": \"\",\n \"quantity\": \"\",\n \"unlimited\": \"\",\n \"userId\": \"\",\n \"amount\": \"\",\n \"defineAmountByUser\": \"\",\n \"isActive\": \"\",\n \"isArchived\": \"\",\n \"haveTax\": \"\",\n \"tax\": \"\",\n \"imageLink\": \"\",\n \"imageId\": \"\",\n \"category\": {\n \"code\": \"\",\n \"name\": \"\"\n }\n}" + } + ] + }, + { + "name": "حذف یک آیتم مالی", + "request": { + "auth": { + "type": "bearer" + }, + "method": "DELETE", + "header": [], + "url": { + "raw": "https://api.payping.ir/v1/product/:code", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "product", + ":code" + ], + "variable": [ + { + "key": "code", + "value": "", + "description": "کد آیتم مالی" + } + ] + } + }, + "response": [ + { + "name": "آیتم مالی با موفقیت حذف شد", + "originalRequest": { + "method": "DELETE", + "header": [], + "url": { + "raw": "https://api.payping.ir/v1/product/", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "product", + "" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "text", + "header": [ + { + "key": "Content-Type", + "value": "text/plain" + } + ], + "cookie": [], + "body": "" + } + ] + } + ], + "_postman_isSubFolder": true + }, + { + "name": "Invoice", + "item": [ + { + "name": "فاکتور جدید", + "request": { + "auth": { + "type": "bearer" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"ccToes\": [\n {\n \"emailAddress\": \"\"\n },\n {\n \"emailAddress\": \"\"\n }\n ],\n \"billToes\": [\n {\n \"addressBookCode\": \"\"\n },\n {\n \"addressBookCode\": \"\"\n }\n ],\n \"createStatus\": \"\",\n \"paidManualDescription\": \"\",\n \"saveToTemplate\": \"\",\n \"templateCode\": \"\",\n \"invoiceNumber\": \"\",\n \"invoiceTitle\": \"\",\n \"invoiceDateTime\": \"\",\n \"dueDate\": \"\",\n \"totalDiscountValue\": \"\",\n \"totalDiscountType\": \"\",\n \"shipping\": \"\",\n \"notes\": \"\",\n \"termsAndConditions\": \"\",\n \"memo\": \"\",\n \"invoiceItems\": [\n {\n \"code\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"tax\": \"\",\n \"quantity\": 1,\n \"discountValue\": \"\",\n \"discountType\": \"\",\n \"discountCouponCode\": \"\",\n \"price\": \"\"\n },\n {\n \"code\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"tax\": \"\",\n \"quantity\": 1,\n \"discountValue\": \"\",\n \"discountType\": \"\",\n \"discountCouponCode\": \"\",\n \"price\": \"\"\n }\n ],\n \"isSendAttachmentsAfterPayment\": \"\",\n \"isSendNotesAndTermsAfterPayment\": \"\",\n \"isSendTermsAfterPayment\": \"\",\n \"attachmentsIds\": [\n \"\",\n \"\"\n ],\n \"isDevicePayment\": \"\"\n}" + }, + "url": { + "raw": "https://api.payping.ir/v1/Invoice", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "Invoice" + ] + } + }, + "response": [ + { + "name": "نمایش فاکتور", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"ccToes\": [\n {\n \"emailAddress\": \"\"\n },\n {\n \"emailAddress\": \"\"\n }\n ],\n \"billToes\": [\n {\n \"addressBookCode\": \"\"\n },\n {\n \"addressBookCode\": \"\"\n }\n ],\n \"createStatus\": \"\",\n \"paidManualDescription\": \"\",\n \"saveToTemplate\": \"\",\n \"templateCode\": \"\",\n \"invoiceNumber\": \"\",\n \"invoiceTitle\": \"\",\n \"invoiceDateTime\": \"\",\n \"dueDate\": \"\",\n \"totalDiscountValue\": \"\",\n \"totalDiscountType\": \"\",\n \"shipping\": \"\",\n \"notes\": \"\",\n \"termsAndConditions\": \"\",\n \"memo\": \"\",\n \"invoiceItems\": [\n {\n \"code\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"tax\": \"\",\n \"quantity\": 1,\n \"discountValue\": \"\",\n \"discountType\": \"\",\n \"discountCouponCode\": \"\",\n \"price\": \"\"\n },\n {\n \"code\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"tax\": \"\",\n \"quantity\": 1,\n \"discountValue\": \"\",\n \"discountType\": \"\",\n \"discountCouponCode\": \"\",\n \"price\": \"\"\n }\n ],\n \"isSendAttachmentsAfterPayment\": \"\",\n \"isSendNotesAndTermsAfterPayment\": \"\",\n \"isSendTermsAfterPayment\": \"\",\n \"attachmentsIds\": [\n \"\",\n \"\"\n ],\n \"isDevicePayment\": \"\"\n}" + }, + "url": { + "raw": "https://api.payping.ir/v1/Invoice", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "Invoice" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "[\n {\n \"code\": \"\",\n \"parentCode\": \"\",\n \"paymentCode\": \"\",\n \"ccToes\": [\n {\n \"emailAddress\": \"\"\n },\n {\n \"emailAddress\": \"\"\n }\n ],\n \"billToes\": [\n {\n \"addressBook\": {\n \"code\": \"\",\n \"firstName\": \"\",\n \"lastName\": \"\",\n \"userPhotoFileAddress\": \"\",\n \"userPhotoFileId\": \"\",\n \"email\": \"\",\n \"phone\": \"\",\n \"businessName\": \"\",\n \"additionalInfo\": \"\",\n \"memo\": \"\",\n \"zipCode\": \"\",\n \"state\": \"\",\n \"city\": \"\",\n \"location\": \"\",\n \"isBusiness\": \"\",\n \"nationalId\": \"\"\n }\n },\n {\n \"addressBook\": {\n \"code\": \"\",\n \"firstName\": \"\",\n \"lastName\": \"\",\n \"userPhotoFileAddress\": \"\",\n \"userPhotoFileId\": \"\",\n \"email\": \"\",\n \"phone\": \"\",\n \"businessName\": \"\",\n \"additionalInfo\": \"\",\n \"memo\": \"\",\n \"zipCode\": \"\",\n \"state\": \"\",\n \"city\": \"\",\n \"location\": \"\",\n \"isBusiness\": \"\",\n \"nationalId\": \"\"\n }\n }\n ],\n \"status\": \"\",\n \"paidManualDescription\": \"\",\n \"saveToTemplate\": \"\",\n \"invoiceNumber\": \"\",\n \"invoiceTitle\": \"\",\n \"invoiceDateTime\": \"\",\n \"dueDate\": \"\",\n \"payedDateTime\": \"\",\n \"canceledDateTime\": \"\",\n \"subTotal\": \"\",\n \"itemsDiscountAmount\": \"\",\n \"totalDiscountAmount\": \"\",\n \"totalDiscountPercent\": \"\",\n \"totalDiscountType\": \"\",\n \"sumDiscountAmount\": \"\",\n \"totalTaxtionAmount\": \"\",\n \"shipping\": \"\",\n \"total\": \"\",\n \"notes\": \"\",\n \"termsAndConditions\": \"\",\n \"memo\": \"\",\n \"invoiceSchulder\": {\n \"repeat\": \"\",\n \"schulderType\": \"\",\n \"dueType\": \"\",\n \"endValue\": \"\",\n \"dueDateAfterHowManyDay\": \"\",\n \"invoiceSubSchulders\": [\n {\n \"dueDate\": \"\",\n \"mustBeCreateInDateTime\": \"\",\n \"deActiveDateTime\": \"\",\n \"isInvoiceCreated\": \"\",\n \"isActive\": \"\",\n \"invoiceCode\": \"\"\n },\n {\n \"dueDate\": \"\",\n \"mustBeCreateInDateTime\": \"\",\n \"deActiveDateTime\": \"\",\n \"isInvoiceCreated\": \"\",\n \"isActive\": \"\",\n \"invoiceCode\": \"\"\n }\n ]\n },\n \"invoiceItems\": [\n {\n \"code\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"quantity\": \"\",\n \"discountType\": \"\",\n \"discountPercent\": \"\",\n \"discountAmount\": \"\",\n \"tax\": \"\",\n \"taxRate\": \"\",\n \"price\": \"\",\n \"totalPrice\": \"\",\n \"amount\": \"\"\n },\n {\n \"code\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"quantity\": \"\",\n \"discountType\": \"\",\n \"discountPercent\": \"\",\n \"discountAmount\": \"\",\n \"tax\": \"\",\n \"taxRate\": \"\",\n \"price\": \"\",\n \"totalPrice\": \"\",\n \"amount\": \"\"\n }\n ],\n \"isSendAttachmentsAfterPayment\": \"\",\n \"isSendNotesAndTermsAfterPayment\": \"\",\n \"isSendTermsAfterPayment\": \"\",\n \"attachFileIds\": [\n \"\",\n \"\"\n ],\n \"attachFileAddresses\": [\n \"\",\n \"\"\n ],\n \"qrCodeFileName\": \"\"\n },\n {\n \"code\": \"\",\n \"parentCode\": \"\",\n \"paymentCode\": \"\",\n \"ccToes\": [\n {\n \"emailAddress\": \"\"\n },\n {\n \"emailAddress\": \"\"\n }\n ],\n \"billToes\": [\n {\n \"addressBook\": {\n \"code\": \"\",\n \"firstName\": \"\",\n \"lastName\": \"\",\n \"userPhotoFileAddress\": \"\",\n \"userPhotoFileId\": \"\",\n \"email\": \"\",\n \"phone\": \"\",\n \"businessName\": \"\",\n \"additionalInfo\": \"\",\n \"memo\": \"\",\n \"zipCode\": \"\",\n \"state\": \"\",\n \"city\": \"\",\n \"location\": \"\",\n \"isBusiness\": \"\",\n \"nationalId\": \"\"\n }\n },\n {\n \"addressBook\": {\n \"code\": \"\",\n \"firstName\": \"\",\n \"lastName\": \"\",\n \"userPhotoFileAddress\": \"\",\n \"userPhotoFileId\": \"\",\n \"email\": \"\",\n \"phone\": \"\",\n \"businessName\": \"\",\n \"additionalInfo\": \"\",\n \"memo\": \"\",\n \"zipCode\": \"\",\n \"state\": \"\",\n \"city\": \"\",\n \"location\": \"\",\n \"isBusiness\": \"\",\n \"nationalId\": \"\"\n }\n }\n ],\n \"status\": \"\",\n \"paidManualDescription\": \"\",\n \"saveToTemplate\": \"\",\n \"invoiceNumber\": \"\",\n \"invoiceTitle\": \"\",\n \"invoiceDateTime\": \"\",\n \"dueDate\": \"\",\n \"payedDateTime\": \"\",\n \"canceledDateTime\": \"\",\n \"subTotal\": \"\",\n \"itemsDiscountAmount\": \"\",\n \"totalDiscountAmount\": \"\",\n \"totalDiscountPercent\": \"\",\n \"totalDiscountType\": \"\",\n \"sumDiscountAmount\": \"\",\n \"totalTaxtionAmount\": \"\",\n \"shipping\": \"\",\n \"total\": \"\",\n \"notes\": \"\",\n \"termsAndConditions\": \"\",\n \"memo\": \"\",\n \"invoiceSchulder\": {\n \"repeat\": \"\",\n \"schulderType\": \"\",\n \"dueType\": \"\",\n \"endValue\": \"\",\n \"dueDateAfterHowManyDay\": \"\",\n \"invoiceSubSchulders\": [\n {\n \"dueDate\": \"\",\n \"mustBeCreateInDateTime\": \"\",\n \"deActiveDateTime\": \"\",\n \"isInvoiceCreated\": \"\",\n \"isActive\": \"\",\n \"invoiceCode\": \"\"\n },\n {\n \"dueDate\": \"\",\n \"mustBeCreateInDateTime\": \"\",\n \"deActiveDateTime\": \"\",\n \"isInvoiceCreated\": \"\",\n \"isActive\": \"\",\n \"invoiceCode\": \"\"\n }\n ]\n },\n \"invoiceItems\": [\n {\n \"code\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"quantity\": \"\",\n \"discountType\": \"\",\n \"discountPercent\": \"\",\n \"discountAmount\": \"\",\n \"tax\": \"\",\n \"taxRate\": \"\",\n \"price\": \"\",\n \"totalPrice\": \"\",\n \"amount\": \"\"\n },\n {\n \"code\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"quantity\": \"\",\n \"discountType\": \"\",\n \"discountPercent\": \"\",\n \"discountAmount\": \"\",\n \"tax\": \"\",\n \"taxRate\": \"\",\n \"price\": \"\",\n \"totalPrice\": \"\",\n \"amount\": \"\"\n }\n ],\n \"isSendAttachmentsAfterPayment\": \"\",\n \"isSendNotesAndTermsAfterPayment\": \"\",\n \"isSendTermsAfterPayment\": \"\",\n \"attachFileIds\": [\n \"\",\n \"\"\n ],\n \"attachFileAddresses\": [\n \"\",\n \"\"\n ],\n \"qrCodeFileName\": \"\"\n }\n]" + } + ] + }, + { + "name": "ارسال فاکتور", + "request": { + "auth": { + "type": "bearer" + }, + "method": "POST", + "header": [], + "url": { + "raw": "https://api.payping.ir/v1/Invoice/Send/:code", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "Invoice", + "Send", + ":code" + ], + "variable": [ + { + "key": "code", + "value": "", + "description": "کلید یکتای فاکتور" + } + ] + } + }, + "response": [ + { + "name": "نمایش وضعیت ارسال فاکتور", + "originalRequest": { + "method": "POST", + "header": [], + "url": { + "raw": "https://api.payping.ir/v1/Invoice/Send/", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "Invoice", + "Send", + "" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"success\": \"\",\n \"message\": \"\",\n \"modelCode\": \"\"\n}" + } + ] + }, + { + "name": "فاکتور غیر رسمی pdf درخواست", + "request": { + "auth": { + "type": "bearer" + }, + "method": "GET", + "header": [], + "url": { + "raw": "https://api.payping.ir/v1/Invoice/Pdf/:code", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "Invoice", + "Pdf", + ":code" + ], + "variable": [ + { + "key": "code", + "value": "", + "description": "کلید یکتای فاکتور" + } + ] + } + }, + "response": [ + { + "name": "نمایش مشخصات فایل فاکتور غیر رسمی", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "https://api.payping.ir/v1/Invoice/Pdf/", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "Invoice", + "Pdf", + "" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"success\": \"\",\n \"message\": \"\",\n \"fileAddress\": \"\"\n}" + } + ] + }, + { + "name": "دریافت مشخصات پرداخت کننده فاکتور", + "request": { + "auth": { + "type": "bearer" + }, + "method": "GET", + "header": [], + "url": { + "raw": "https://api.payping.ir/v1/Invoice/Buyer/:code", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "Invoice", + "Buyer", + ":code" + ], + "variable": [ + { + "key": "code", + "value": "", + "description": { + "content": "", + "type": "text/plain" + } + } + ] + } + }, + "response": [ + { + "name": "مشخصات پرداخت کننده فاکتور", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "https://api.payping.ir/v1/Invoice/Buyer/", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "Invoice", + "Buyer", + "" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"code\": \"\",\n \"firstName\": \"\",\n \"lastName\": \"\",\n \"userPhotoFileAddress\": \"\",\n \"userPhotoFileId\": \"\",\n \"email\": \"\",\n \"phone\": \"\",\n \"businessName\": \"\",\n \"additionalInfo\": \"\",\n \"memo\": \"\",\n \"zipCode\": \"\",\n \"state\": \"\",\n \"city\": \"\",\n \"location\": \"\",\n \"isBusiness\": \"\",\n \"nationalId\": \"\"\n}" + } + ] + }, + { + "name": "لیست فاکتور ها", + "request": { + "auth": { + "type": "bearer" + }, + "method": "GET", + "header": [], + "url": { + "raw": "https://api.payping.ir/v1/Invoice/List?offset=&limit=10&status=5&isArchived=&searchByDueDate=&searchByCreateDate=&searchDateFrom=&searchDateTo=&search=&addressBookCode=&invoiceCode=", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "Invoice", + "List" + ], + "query": [ + { + "key": "offset", + "value": "" + }, + { + "key": "limit", + "value": "10" + }, + { + "key": "status", + "value": "5", + "description": "فیلتر وضعیت" + }, + { + "key": "isArchived", + "value": "", + "description": "فیلتر بایگانی" + }, + { + "key": "searchByDueDate", + "value": "", + "description": "فیلتر با تاریخ سررسید" + }, + { + "key": "searchByCreateDate", + "value": "", + "description": "فیلتر با تاریخ ثبت" + }, + { + "key": "searchDateFrom", + "value": "", + "description": "شروع از تاریخ" + }, + { + "key": "searchDateTo", + "value": "", + "description": "تا تاریخ" + }, + { + "key": "search", + "value": "", + "description": "متن جستجو" + }, + { + "key": "addressBookCode", + "value": "", + "description": "فیلتر بر اساس کد مشتری" + }, + { + "key": "invoiceCode", + "value": "", + "description": "فیلتر براساس کد فاکتور" + } + ] + } + }, + "response": [ + { + "name": "نمایش لیست فاکتور ها", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "https://api.payping.ir/v1/Invoice/List?offset=&limit=10&status=5&isArchived=&searchByDueDate=&searchByCreateDate=&searchDateFrom=&searchDateTo=&search=&addressBookCode=&invoiceCode=", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "Invoice", + "List" + ], + "query": [ + { + "key": "offset", + "value": "" + }, + { + "key": "limit", + "value": "10" + }, + { + "key": "status", + "value": "5" + }, + { + "key": "isArchived", + "value": "" + }, + { + "key": "searchByDueDate", + "value": "" + }, + { + "key": "searchByCreateDate", + "value": "" + }, + { + "key": "searchDateFrom", + "value": "" + }, + { + "key": "searchDateTo", + "value": "" + }, + { + "key": "search", + "value": "" + }, + { + "key": "addressBookCode", + "value": "" + }, + { + "key": "invoiceCode", + "value": "" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "[\n {\n \"code\": \"\",\n \"invoiceNumber\": \"\",\n \"invoiceDateTime\": \"\",\n \"dueDate\": \"\",\n \"payedDateTime\": \"\",\n \"canceledDateTime\": \"\",\n \"invoiceTitle\": \"\",\n \"status\": \"\",\n \"total\": \"\",\n \"ccToes\": [\n {\n \"emailAddress\": \"\"\n },\n {\n \"emailAddress\": \"\"\n }\n ],\n \"billToes\": [\n {\n \"addressBook\": {\n \"code\": \"\",\n \"email\": \"\",\n \"phone\": \"\",\n \"firstName\": \"\",\n \"lastName\": \"\",\n \"businessName\": \"\",\n \"nationalId\": \"\",\n \"isBusiness\": \"\"\n }\n },\n {\n \"addressBook\": {\n \"code\": \"\",\n \"email\": \"\",\n \"phone\": \"\",\n \"firstName\": \"\",\n \"lastName\": \"\",\n \"businessName\": \"\",\n \"nationalId\": \"\",\n \"isBusiness\": \"\"\n }\n }\n ]\n },\n {\n \"code\": \"\",\n \"invoiceNumber\": \"\",\n \"invoiceDateTime\": \"\",\n \"dueDate\": \"\",\n \"payedDateTime\": \"\",\n \"canceledDateTime\": \"\",\n \"invoiceTitle\": \"\",\n \"status\": \"\",\n \"total\": \"\",\n \"ccToes\": [\n {\n \"emailAddress\": \"\"\n },\n {\n \"emailAddress\": \"\"\n }\n ],\n \"billToes\": [\n {\n \"addressBook\": {\n \"code\": \"\",\n \"email\": \"\",\n \"phone\": \"\",\n \"firstName\": \"\",\n \"lastName\": \"\",\n \"businessName\": \"\",\n \"nationalId\": \"\",\n \"isBusiness\": \"\"\n }\n },\n {\n \"addressBook\": {\n \"code\": \"\",\n \"email\": \"\",\n \"phone\": \"\",\n \"firstName\": \"\",\n \"lastName\": \"\",\n \"businessName\": \"\",\n \"nationalId\": \"\",\n \"isBusiness\": \"\"\n }\n }\n ]\n }\n]" + } + ] + }, + { + "name": "تعداد فاکتور ها", + "request": { + "auth": { + "type": "bearer" + }, + "method": "GET", + "header": [], + "url": { + "raw": "https://api.payping.ir/v1/Invoice/ListCount?status=5&isArchived=&searchByDueDate=&searchByCreateDate=&searchDateFrom=&searchDateTo=&search=&addressBookCode=&invoiceCode=", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "Invoice", + "ListCount" + ], + "query": [ + { + "key": "status", + "value": "5", + "description": "فیلتر وضعیت" + }, + { + "key": "isArchived", + "value": "", + "description": "فیلتر بایگانی" + }, + { + "key": "searchByDueDate", + "value": "", + "description": "فیلتر با تاریخ سررسید" + }, + { + "key": "searchByCreateDate", + "value": "", + "description": "فیلتر با تاریخ ثبت" + }, + { + "key": "searchDateFrom", + "value": "", + "description": "شروع از تاریخ" + }, + { + "key": "searchDateTo", + "value": "", + "description": "تا تاریخ" + }, + { + "key": "search", + "value": "", + "description": "متن جستجو" + }, + { + "key": "addressBookCode", + "value": "", + "description": "فیلتر بر اساس کد مشتری" + }, + { + "key": "invoiceCode", + "value": "", + "description": "فیلتر براساس کد فاکتور" + } + ] + } + }, + "response": [ + { + "name": "نمایش تعداد فاکتور ها", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "https://api.payping.ir/v1/Invoice/ListCount?status=5&isArchived=&searchByDueDate=&searchByCreateDate=&searchDateFrom=&searchDateTo=&search=&addressBookCode=&invoiceCode=", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "Invoice", + "ListCount" + ], + "query": [ + { + "key": "status", + "value": "5" + }, + { + "key": "isArchived", + "value": "" + }, + { + "key": "searchByDueDate", + "value": "" + }, + { + "key": "searchByCreateDate", + "value": "" + }, + { + "key": "searchDateFrom", + "value": "" + }, + { + "key": "searchDateTo", + "value": "" + }, + { + "key": "search", + "value": "" + }, + { + "key": "addressBookCode", + "value": "" + }, + { + "key": "invoiceCode", + "value": "" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"count\": \"\"\n}" + } + ] + }, + { + "name": "درخواست لغو فاکتور", + "request": { + "auth": { + "type": "bearer" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"code\": \"\",\n \"previewKey\": \"\"\n}" + }, + "url": { + "raw": "https://api.payping.ir/v1/Invoice/Cancel", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "Invoice", + "Cancel" + ] + } + }, + "response": [ + { + "name": "نمایش فاکتور", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"code\": \"\",\n \"previewKey\": \"\"\n}" + }, + "url": { + "raw": "https://api.payping.ir/v1/Invoice/Cancel", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "Invoice", + "Cancel" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"code\": \"\",\n \"message\": \"\"\n}" + } + ] + }, + { + "name": "ارسال یادآوری فاکتور", + "request": { + "auth": { + "type": "bearer" + }, + "method": "POST", + "header": [], + "url": { + "raw": "https://api.payping.ir/v1/Invoice/Reminder/:code", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "Invoice", + "Reminder", + ":code" + ], + "variable": [ + { + "key": "code", + "value": "", + "description": "کلید یکتای فاکتور" + } + ] + } + }, + "response": [ + { + "name": "نمایش وضعیت ارسال یادآوری فاکتور", + "originalRequest": { + "method": "POST", + "header": [], + "url": { + "raw": "https://api.payping.ir/v1/Invoice/Reminder/", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "Invoice", + "Reminder", + "" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"success\": \"\",\n \"message\": \"\",\n \"modelCode\": \"\"\n}" + } + ] + }, + { + "name": "بروزرسانی فاکتور", + "request": { + "auth": { + "type": "bearer" + }, + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"code\": \"\",\n \"ccToes\": [\n {\n \"emailAddress\": \"\"\n },\n {\n \"emailAddress\": \"\"\n }\n ],\n \"billToes\": [\n {\n \"addressBookCode\": \"\"\n },\n {\n \"addressBookCode\": \"\"\n }\n ],\n \"createStatus\": \"\",\n \"paidManualDescription\": \"\",\n \"saveToTemplate\": \"\",\n \"templateCode\": \"\",\n \"invoiceNumber\": \"\",\n \"invoiceTitle\": \"\",\n \"invoiceDateTime\": \"\",\n \"dueDate\": \"\",\n \"totalDiscountValue\": \"\",\n \"totalDiscountType\": \"\",\n \"shipping\": \"\",\n \"notes\": \"\",\n \"termsAndConditions\": \"\",\n \"memo\": \"\",\n \"invoiceItems\": [\n {\n \"code\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"tax\": \"\",\n \"quantity\": 1,\n \"discountValue\": \"\",\n \"discountType\": \"\",\n \"discountCouponCode\": \"\",\n \"price\": \"\"\n },\n {\n \"code\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"tax\": \"\",\n \"quantity\": 1,\n \"discountValue\": \"\",\n \"discountType\": \"\",\n \"discountCouponCode\": \"\",\n \"price\": \"\"\n }\n ],\n \"isSendAttachmentsAfterPayment\": \"\",\n \"isSendNotesAndTermsAfterPayment\": \"\",\n \"isSendTermsAfterPayment\": \"\",\n \"attachmentsIds\": [\n \"\",\n \"\"\n ],\n \"isDevicePayment\": \"\"\n}" + }, + "url": { + "raw": "https://api.payping.ir/v1/Invoice/:code", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "Invoice", + ":code" + ], + "variable": [ + { + "key": "code", + "value": "", + "description": "کلید یکتای فاکتور" + } + ] + } + }, + "response": [ + { + "name": "نمایش فاکتور", + "originalRequest": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"code\": \"\",\n \"ccToes\": [\n {\n \"emailAddress\": \"\"\n },\n {\n \"emailAddress\": \"\"\n }\n ],\n \"billToes\": [\n {\n \"addressBookCode\": \"\"\n },\n {\n \"addressBookCode\": \"\"\n }\n ],\n \"createStatus\": \"\",\n \"paidManualDescription\": \"\",\n \"saveToTemplate\": \"\",\n \"templateCode\": \"\",\n \"invoiceNumber\": \"\",\n \"invoiceTitle\": \"\",\n \"invoiceDateTime\": \"\",\n \"dueDate\": \"\",\n \"totalDiscountValue\": \"\",\n \"totalDiscountType\": \"\",\n \"shipping\": \"\",\n \"notes\": \"\",\n \"termsAndConditions\": \"\",\n \"memo\": \"\",\n \"invoiceItems\": [\n {\n \"code\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"tax\": \"\",\n \"quantity\": 1,\n \"discountValue\": \"\",\n \"discountType\": \"\",\n \"discountCouponCode\": \"\",\n \"price\": \"\"\n },\n {\n \"code\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"tax\": \"\",\n \"quantity\": 1,\n \"discountValue\": \"\",\n \"discountType\": \"\",\n \"discountCouponCode\": \"\",\n \"price\": \"\"\n }\n ],\n \"isSendAttachmentsAfterPayment\": \"\",\n \"isSendNotesAndTermsAfterPayment\": \"\",\n \"isSendTermsAfterPayment\": \"\",\n \"attachmentsIds\": [\n \"\",\n \"\"\n ],\n \"isDevicePayment\": \"\"\n}" + }, + "url": { + "raw": "https://api.payping.ir/v1/Invoice/", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "Invoice", + "" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"code\": \"\",\n \"parentCode\": \"\",\n \"paymentCode\": \"\",\n \"ccToes\": [\n {\n \"emailAddress\": \"\"\n },\n {\n \"emailAddress\": \"\"\n }\n ],\n \"billToes\": [\n {\n \"addressBook\": {\n \"code\": \"\",\n \"firstName\": \"\",\n \"lastName\": \"\",\n \"userPhotoFileAddress\": \"\",\n \"userPhotoFileId\": \"\",\n \"email\": \"\",\n \"phone\": \"\",\n \"businessName\": \"\",\n \"additionalInfo\": \"\",\n \"memo\": \"\",\n \"zipCode\": \"\",\n \"state\": \"\",\n \"city\": \"\",\n \"location\": \"\",\n \"isBusiness\": \"\",\n \"nationalId\": \"\"\n }\n },\n {\n \"addressBook\": {\n \"code\": \"\",\n \"firstName\": \"\",\n \"lastName\": \"\",\n \"userPhotoFileAddress\": \"\",\n \"userPhotoFileId\": \"\",\n \"email\": \"\",\n \"phone\": \"\",\n \"businessName\": \"\",\n \"additionalInfo\": \"\",\n \"memo\": \"\",\n \"zipCode\": \"\",\n \"state\": \"\",\n \"city\": \"\",\n \"location\": \"\",\n \"isBusiness\": \"\",\n \"nationalId\": \"\"\n }\n }\n ],\n \"status\": \"\",\n \"paidManualDescription\": \"\",\n \"saveToTemplate\": \"\",\n \"invoiceNumber\": \"\",\n \"invoiceTitle\": \"\",\n \"invoiceDateTime\": \"\",\n \"dueDate\": \"\",\n \"payedDateTime\": \"\",\n \"canceledDateTime\": \"\",\n \"subTotal\": \"\",\n \"itemsDiscountAmount\": \"\",\n \"totalDiscountAmount\": \"\",\n \"totalDiscountPercent\": \"\",\n \"totalDiscountType\": \"\",\n \"sumDiscountAmount\": \"\",\n \"totalTaxtionAmount\": \"\",\n \"shipping\": \"\",\n \"total\": \"\",\n \"notes\": \"\",\n \"termsAndConditions\": \"\",\n \"memo\": \"\",\n \"invoiceSchulder\": {\n \"repeat\": \"\",\n \"schulderType\": \"\",\n \"dueType\": \"\",\n \"endValue\": \"\",\n \"dueDateAfterHowManyDay\": \"\",\n \"invoiceSubSchulders\": [\n {\n \"dueDate\": \"\",\n \"mustBeCreateInDateTime\": \"\",\n \"deActiveDateTime\": \"\",\n \"isInvoiceCreated\": \"\",\n \"isActive\": \"\",\n \"invoiceCode\": \"\"\n },\n {\n \"dueDate\": \"\",\n \"mustBeCreateInDateTime\": \"\",\n \"deActiveDateTime\": \"\",\n \"isInvoiceCreated\": \"\",\n \"isActive\": \"\",\n \"invoiceCode\": \"\"\n }\n ]\n },\n \"invoiceItems\": [\n {\n \"code\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"quantity\": \"\",\n \"discountType\": \"\",\n \"discountPercent\": \"\",\n \"discountAmount\": \"\",\n \"tax\": \"\",\n \"taxRate\": \"\",\n \"price\": \"\",\n \"totalPrice\": \"\",\n \"amount\": \"\"\n },\n {\n \"code\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"quantity\": \"\",\n \"discountType\": \"\",\n \"discountPercent\": \"\",\n \"discountAmount\": \"\",\n \"tax\": \"\",\n \"taxRate\": \"\",\n \"price\": \"\",\n \"totalPrice\": \"\",\n \"amount\": \"\"\n }\n ],\n \"isSendAttachmentsAfterPayment\": \"\",\n \"isSendNotesAndTermsAfterPayment\": \"\",\n \"isSendTermsAfterPayment\": \"\",\n \"attachFileIds\": [\n \"\",\n \"\"\n ],\n \"attachFileAddresses\": [\n \"\",\n \"\"\n ],\n \"qrCodeFileName\": \"\"\n}" + } + ] + }, + { + "name": "حذف فاکتور", + "request": { + "auth": { + "type": "bearer" + }, + "method": "DELETE", + "header": [], + "url": { + "raw": "https://api.payping.ir/v1/Invoice/:code", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "Invoice", + ":code" + ], + "variable": [ + { + "key": "code", + "value": "", + "description": "کلید یکتای فاکتور" + } + ] + } + }, + "response": [ + { + "name": "نمایش کلید یکتای فاکتور", + "originalRequest": { + "method": "DELETE", + "header": [], + "url": { + "raw": "https://api.payping.ir/v1/Invoice/", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "Invoice", + "" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "\"\"" + } + ] + }, + { + "name": "دریافت فاکتور", + "request": { + "auth": { + "type": "bearer" + }, + "method": "GET", + "header": [], + "url": { + "raw": "https://api.payping.ir/v1/Invoice/:code", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "Invoice", + ":code" + ], + "variable": [ + { + "key": "code", + "value": "", + "description": "کلید یکتای فاکتور" + } + ] + } + }, + "response": [ + { + "name": "نمایش فاکتور", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "https://api.payping.ir/v1/Invoice/", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "Invoice", + "" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"code\": \"\",\n \"parentCode\": \"\",\n \"paymentCode\": \"\",\n \"ccToes\": [\n {\n \"emailAddress\": \"\"\n },\n {\n \"emailAddress\": \"\"\n }\n ],\n \"billToes\": [\n {\n \"addressBook\": {\n \"code\": \"\",\n \"firstName\": \"\",\n \"lastName\": \"\",\n \"userPhotoFileAddress\": \"\",\n \"userPhotoFileId\": \"\",\n \"email\": \"\",\n \"phone\": \"\",\n \"businessName\": \"\",\n \"additionalInfo\": \"\",\n \"memo\": \"\",\n \"zipCode\": \"\",\n \"state\": \"\",\n \"city\": \"\",\n \"location\": \"\",\n \"isBusiness\": \"\",\n \"nationalId\": \"\"\n }\n },\n {\n \"addressBook\": {\n \"code\": \"\",\n \"firstName\": \"\",\n \"lastName\": \"\",\n \"userPhotoFileAddress\": \"\",\n \"userPhotoFileId\": \"\",\n \"email\": \"\",\n \"phone\": \"\",\n \"businessName\": \"\",\n \"additionalInfo\": \"\",\n \"memo\": \"\",\n \"zipCode\": \"\",\n \"state\": \"\",\n \"city\": \"\",\n \"location\": \"\",\n \"isBusiness\": \"\",\n \"nationalId\": \"\"\n }\n }\n ],\n \"status\": \"\",\n \"paidManualDescription\": \"\",\n \"saveToTemplate\": \"\",\n \"invoiceNumber\": \"\",\n \"invoiceTitle\": \"\",\n \"invoiceDateTime\": \"\",\n \"dueDate\": \"\",\n \"payedDateTime\": \"\",\n \"canceledDateTime\": \"\",\n \"subTotal\": \"\",\n \"itemsDiscountAmount\": \"\",\n \"totalDiscountAmount\": \"\",\n \"totalDiscountPercent\": \"\",\n \"totalDiscountType\": \"\",\n \"sumDiscountAmount\": \"\",\n \"totalTaxtionAmount\": \"\",\n \"shipping\": \"\",\n \"total\": \"\",\n \"notes\": \"\",\n \"termsAndConditions\": \"\",\n \"memo\": \"\",\n \"invoiceSchulder\": {\n \"repeat\": \"\",\n \"schulderType\": \"\",\n \"dueType\": \"\",\n \"endValue\": \"\",\n \"dueDateAfterHowManyDay\": \"\",\n \"invoiceSubSchulders\": [\n {\n \"dueDate\": \"\",\n \"mustBeCreateInDateTime\": \"\",\n \"deActiveDateTime\": \"\",\n \"isInvoiceCreated\": \"\",\n \"isActive\": \"\",\n \"invoiceCode\": \"\"\n },\n {\n \"dueDate\": \"\",\n \"mustBeCreateInDateTime\": \"\",\n \"deActiveDateTime\": \"\",\n \"isInvoiceCreated\": \"\",\n \"isActive\": \"\",\n \"invoiceCode\": \"\"\n }\n ]\n },\n \"invoiceItems\": [\n {\n \"code\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"quantity\": \"\",\n \"discountType\": \"\",\n \"discountPercent\": \"\",\n \"discountAmount\": \"\",\n \"tax\": \"\",\n \"taxRate\": \"\",\n \"price\": \"\",\n \"totalPrice\": \"\",\n \"amount\": \"\"\n },\n {\n \"code\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"quantity\": \"\",\n \"discountType\": \"\",\n \"discountPercent\": \"\",\n \"discountAmount\": \"\",\n \"tax\": \"\",\n \"taxRate\": \"\",\n \"price\": \"\",\n \"totalPrice\": \"\",\n \"amount\": \"\"\n }\n ],\n \"isSendAttachmentsAfterPayment\": \"\",\n \"isSendNotesAndTermsAfterPayment\": \"\",\n \"isSendTermsAfterPayment\": \"\",\n \"attachFileIds\": [\n \"\",\n \"\"\n ],\n \"attachFileAddresses\": [\n \"\",\n \"\"\n ],\n \"qrCodeFileName\": \"\"\n}" + } + ] + } + ], + "_postman_isSubFolder": true + }, + { + "name": "Schedule", + "item": [ + { + "name": "فاکتور زمانبندی شده جدید", + "request": { + "auth": { + "type": "bearer" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"ccToes\": [\n {\n \"emailAddress\": \"\"\n },\n {\n \"emailAddress\": \"\"\n }\n ],\n \"billToes\": [\n {\n \"addressBookCode\": \"\"\n },\n {\n \"addressBookCode\": \"\"\n }\n ],\n \"createStatus\": \"\",\n \"paidManualDescription\": \"\",\n \"saveToTemplate\": \"\",\n \"templateCode\": \"\",\n \"invoiceNumber\": \"\",\n \"invoiceTitle\": \"\",\n \"invoiceDateTime\": \"\",\n \"dueDate\": \"\",\n \"totalDiscountValue\": \"\",\n \"totalDiscountType\": \"\",\n \"shipping\": \"\",\n \"notes\": \"\",\n \"termsAndConditions\": \"\",\n \"memo\": \"\",\n \"invoiceSchulder\": {\n \"repeat\": 1,\n \"schulderType\": \"\",\n \"dueType\": \"\",\n \"endValue\": \"1\",\n \"dueDateAfterHowManyDay\": 2\n },\n \"invoiceItems\": [\n {\n \"code\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"tax\": \"\",\n \"quantity\": 1,\n \"discountValue\": \"\",\n \"discountType\": \"\",\n \"discountCouponCode\": \"\",\n \"price\": \"\"\n },\n {\n \"code\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"tax\": \"\",\n \"quantity\": 1,\n \"discountValue\": \"\",\n \"discountType\": \"\",\n \"discountCouponCode\": \"\",\n \"price\": \"\"\n }\n ],\n \"isSendAttachmentsAfterPayment\": \"\",\n \"isSendNotesAndTermsAfterPayment\": \"\",\n \"isSendTermsAfterPayment\": \"\",\n \"attachmentsIds\": [\n \"\",\n \"\"\n ],\n \"isDevicePayment\": \"\"\n}" + }, + "url": { + "raw": "https://api.payping.ir/v1/Invoice/Schedule", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "Invoice", + "Schedule" + ] + } + }, + "response": [ + { + "name": "نمایش فاکتور زمانبندی شده", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"ccToes\": [\n {\n \"emailAddress\": \"\"\n },\n {\n \"emailAddress\": \"\"\n }\n ],\n \"billToes\": [\n {\n \"addressBookCode\": \"\"\n },\n {\n \"addressBookCode\": \"\"\n }\n ],\n \"createStatus\": \"\",\n \"paidManualDescription\": \"\",\n \"saveToTemplate\": \"\",\n \"templateCode\": \"\",\n \"invoiceNumber\": \"\",\n \"invoiceTitle\": \"\",\n \"invoiceDateTime\": \"\",\n \"dueDate\": \"\",\n \"totalDiscountValue\": \"\",\n \"totalDiscountType\": \"\",\n \"shipping\": \"\",\n \"notes\": \"\",\n \"termsAndConditions\": \"\",\n \"memo\": \"\",\n \"invoiceSchulder\": {\n \"repeat\": 1,\n \"schulderType\": \"\",\n \"dueType\": \"\",\n \"endValue\": \"1\",\n \"dueDateAfterHowManyDay\": 2\n },\n \"invoiceItems\": [\n {\n \"code\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"tax\": \"\",\n \"quantity\": 1,\n \"discountValue\": \"\",\n \"discountType\": \"\",\n \"discountCouponCode\": \"\",\n \"price\": \"\"\n },\n {\n \"code\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"tax\": \"\",\n \"quantity\": 1,\n \"discountValue\": \"\",\n \"discountType\": \"\",\n \"discountCouponCode\": \"\",\n \"price\": \"\"\n }\n ],\n \"isSendAttachmentsAfterPayment\": \"\",\n \"isSendNotesAndTermsAfterPayment\": \"\",\n \"isSendTermsAfterPayment\": \"\",\n \"attachmentsIds\": [\n \"\",\n \"\"\n ],\n \"isDevicePayment\": \"\"\n}" + }, + "url": { + "raw": "https://api.payping.ir/v1/Invoice/Schedule", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "Invoice", + "Schedule" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"code\": \"\",\n \"parentCode\": \"\",\n \"paymentCode\": \"\",\n \"ccToes\": [\n {\n \"emailAddress\": \"\"\n },\n {\n \"emailAddress\": \"\"\n }\n ],\n \"billToes\": [\n {\n \"addressBook\": {\n \"code\": \"\",\n \"firstName\": \"\",\n \"lastName\": \"\",\n \"userPhotoFileAddress\": \"\",\n \"userPhotoFileId\": \"\",\n \"email\": \"\",\n \"phone\": \"\",\n \"businessName\": \"\",\n \"additionalInfo\": \"\",\n \"memo\": \"\",\n \"zipCode\": \"\",\n \"state\": \"\",\n \"city\": \"\",\n \"location\": \"\",\n \"isBusiness\": \"\",\n \"nationalId\": \"\"\n }\n },\n {\n \"addressBook\": {\n \"code\": \"\",\n \"firstName\": \"\",\n \"lastName\": \"\",\n \"userPhotoFileAddress\": \"\",\n \"userPhotoFileId\": \"\",\n \"email\": \"\",\n \"phone\": \"\",\n \"businessName\": \"\",\n \"additionalInfo\": \"\",\n \"memo\": \"\",\n \"zipCode\": \"\",\n \"state\": \"\",\n \"city\": \"\",\n \"location\": \"\",\n \"isBusiness\": \"\",\n \"nationalId\": \"\"\n }\n }\n ],\n \"status\": \"\",\n \"paidManualDescription\": \"\",\n \"saveToTemplate\": \"\",\n \"invoiceNumber\": \"\",\n \"invoiceTitle\": \"\",\n \"invoiceDateTime\": \"\",\n \"dueDate\": \"\",\n \"payedDateTime\": \"\",\n \"canceledDateTime\": \"\",\n \"subTotal\": \"\",\n \"itemsDiscountAmount\": \"\",\n \"totalDiscountAmount\": \"\",\n \"totalDiscountPercent\": \"\",\n \"totalDiscountType\": \"\",\n \"sumDiscountAmount\": \"\",\n \"totalTaxtionAmount\": \"\",\n \"shipping\": \"\",\n \"total\": \"\",\n \"notes\": \"\",\n \"termsAndConditions\": \"\",\n \"memo\": \"\",\n \"invoiceSchulder\": {\n \"repeat\": \"\",\n \"schulderType\": \"\",\n \"dueType\": \"\",\n \"endValue\": \"\",\n \"dueDateAfterHowManyDay\": \"\",\n \"invoiceSubSchulders\": [\n {\n \"dueDate\": \"\",\n \"mustBeCreateInDateTime\": \"\",\n \"deActiveDateTime\": \"\",\n \"isInvoiceCreated\": \"\",\n \"isActive\": \"\",\n \"invoiceCode\": \"\"\n },\n {\n \"dueDate\": \"\",\n \"mustBeCreateInDateTime\": \"\",\n \"deActiveDateTime\": \"\",\n \"isInvoiceCreated\": \"\",\n \"isActive\": \"\",\n \"invoiceCode\": \"\"\n }\n ]\n },\n \"invoiceItems\": [\n {\n \"code\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"quantity\": \"\",\n \"discountType\": \"\",\n \"discountPercent\": \"\",\n \"discountAmount\": \"\",\n \"tax\": \"\",\n \"taxRate\": \"\",\n \"price\": \"\",\n \"totalPrice\": \"\",\n \"amount\": \"\"\n },\n {\n \"code\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"quantity\": \"\",\n \"discountType\": \"\",\n \"discountPercent\": \"\",\n \"discountAmount\": \"\",\n \"tax\": \"\",\n \"taxRate\": \"\",\n \"price\": \"\",\n \"totalPrice\": \"\",\n \"amount\": \"\"\n }\n ],\n \"isSendAttachmentsAfterPayment\": \"\",\n \"isSendNotesAndTermsAfterPayment\": \"\",\n \"isSendTermsAfterPayment\": \"\",\n \"attachFileIds\": [\n \"\",\n \"\"\n ],\n \"attachFileAddresses\": [\n \"\",\n \"\"\n ],\n \"qrCodeFileName\": \"\"\n}" + } + ] + }, + { + "name": "دریافت فاکتور زمانبندی شده", + "request": { + "auth": { + "type": "bearer" + }, + "method": "GET", + "header": [], + "url": { + "raw": "https://api.payping.ir/v1/Invoice/Schedule/:code", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "Invoice", + "Schedule", + ":code" + ], + "variable": [ + { + "key": "code", + "value": "", + "description": { + "content": "", + "type": "text/plain" + } + } + ] + } + }, + "response": [ + { + "name": "فاکتور زمانبندی شده", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "https://api.payping.ir/v1/Invoice/Schedule/", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "Invoice", + "Schedule", + "" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"parentInvoice\": {\n \"code\": \"\",\n \"parentCode\": \"\",\n \"paymentCode\": \"\",\n \"ccToes\": [\n {\n \"emailAddress\": \"\"\n },\n {\n \"emailAddress\": \"\"\n }\n ],\n \"billToes\": [\n {\n \"addressBook\": {\n \"code\": \"\",\n \"firstName\": \"\",\n \"lastName\": \"\",\n \"userPhotoFileAddress\": \"\",\n \"userPhotoFileId\": \"\",\n \"email\": \"\",\n \"phone\": \"\",\n \"businessName\": \"\",\n \"additionalInfo\": \"\",\n \"memo\": \"\",\n \"zipCode\": \"\",\n \"state\": \"\",\n \"city\": \"\",\n \"location\": \"\",\n \"isBusiness\": \"\",\n \"nationalId\": \"\"\n }\n },\n {\n \"addressBook\": {\n \"code\": \"\",\n \"firstName\": \"\",\n \"lastName\": \"\",\n \"userPhotoFileAddress\": \"\",\n \"userPhotoFileId\": \"\",\n \"email\": \"\",\n \"phone\": \"\",\n \"businessName\": \"\",\n \"additionalInfo\": \"\",\n \"memo\": \"\",\n \"zipCode\": \"\",\n \"state\": \"\",\n \"city\": \"\",\n \"location\": \"\",\n \"isBusiness\": \"\",\n \"nationalId\": \"\"\n }\n }\n ],\n \"status\": \"\",\n \"paidManualDescription\": \"\",\n \"saveToTemplate\": \"\",\n \"invoiceNumber\": \"\",\n \"invoiceTitle\": \"\",\n \"invoiceDateTime\": \"\",\n \"dueDate\": \"\",\n \"payedDateTime\": \"\",\n \"canceledDateTime\": \"\",\n \"subTotal\": \"\",\n \"itemsDiscountAmount\": \"\",\n \"totalDiscountAmount\": \"\",\n \"totalDiscountPercent\": \"\",\n \"totalDiscountType\": \"\",\n \"sumDiscountAmount\": \"\",\n \"totalTaxtionAmount\": \"\",\n \"shipping\": \"\",\n \"total\": \"\",\n \"notes\": \"\",\n \"termsAndConditions\": \"\",\n \"memo\": \"\",\n \"invoiceSchulder\": {\n \"repeat\": \"\",\n \"schulderType\": \"\",\n \"dueType\": \"\",\n \"endValue\": \"\",\n \"dueDateAfterHowManyDay\": \"\",\n \"invoiceSubSchulders\": [\n {\n \"dueDate\": \"\",\n \"mustBeCreateInDateTime\": \"\",\n \"deActiveDateTime\": \"\",\n \"isInvoiceCreated\": \"\",\n \"isActive\": \"\",\n \"invoiceCode\": \"\"\n },\n {\n \"dueDate\": \"\",\n \"mustBeCreateInDateTime\": \"\",\n \"deActiveDateTime\": \"\",\n \"isInvoiceCreated\": \"\",\n \"isActive\": \"\",\n \"invoiceCode\": \"\"\n }\n ]\n },\n \"invoiceItems\": [\n {\n \"code\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"quantity\": \"\",\n \"discountType\": \"\",\n \"discountPercent\": \"\",\n \"discountAmount\": \"\",\n \"tax\": \"\",\n \"taxRate\": \"\",\n \"price\": \"\",\n \"totalPrice\": \"\",\n \"amount\": \"\"\n },\n {\n \"code\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"quantity\": \"\",\n \"discountType\": \"\",\n \"discountPercent\": \"\",\n \"discountAmount\": \"\",\n \"tax\": \"\",\n \"taxRate\": \"\",\n \"price\": \"\",\n \"totalPrice\": \"\",\n \"amount\": \"\"\n }\n ],\n \"isSendAttachmentsAfterPayment\": \"\",\n \"isSendNotesAndTermsAfterPayment\": \"\",\n \"isSendTermsAfterPayment\": \"\",\n \"attachFileIds\": [\n \"\",\n \"\"\n ],\n \"attachFileAddresses\": [\n \"\",\n \"\"\n ],\n \"qrCodeFileName\": \"\"\n },\n \"childInvoices\": [\n {\n \"code\": \"\",\n \"parentCode\": \"\",\n \"paymentCode\": \"\",\n \"ccToes\": [\n {\n \"emailAddress\": \"\"\n },\n {\n \"emailAddress\": \"\"\n }\n ],\n \"billToes\": [\n {\n \"addressBook\": {\n \"code\": \"\",\n \"firstName\": \"\",\n \"lastName\": \"\",\n \"userPhotoFileAddress\": \"\",\n \"userPhotoFileId\": \"\",\n \"email\": \"\",\n \"phone\": \"\",\n \"businessName\": \"\",\n \"additionalInfo\": \"\",\n \"memo\": \"\",\n \"zipCode\": \"\",\n \"state\": \"\",\n \"city\": \"\",\n \"location\": \"\",\n \"isBusiness\": \"\",\n \"nationalId\": \"\"\n }\n },\n {\n \"addressBook\": {\n \"code\": \"\",\n \"firstName\": \"\",\n \"lastName\": \"\",\n \"userPhotoFileAddress\": \"\",\n \"userPhotoFileId\": \"\",\n \"email\": \"\",\n \"phone\": \"\",\n \"businessName\": \"\",\n \"additionalInfo\": \"\",\n \"memo\": \"\",\n \"zipCode\": \"\",\n \"state\": \"\",\n \"city\": \"\",\n \"location\": \"\",\n \"isBusiness\": \"\",\n \"nationalId\": \"\"\n }\n }\n ],\n \"status\": \"\",\n \"paidManualDescription\": \"\",\n \"saveToTemplate\": \"\",\n \"invoiceNumber\": \"\",\n \"invoiceTitle\": \"\",\n \"invoiceDateTime\": \"\",\n \"dueDate\": \"\",\n \"payedDateTime\": \"\",\n \"canceledDateTime\": \"\",\n \"subTotal\": \"\",\n \"itemsDiscountAmount\": \"\",\n \"totalDiscountAmount\": \"\",\n \"totalDiscountPercent\": \"\",\n \"totalDiscountType\": \"\",\n \"sumDiscountAmount\": \"\",\n \"totalTaxtionAmount\": \"\",\n \"shipping\": \"\",\n \"total\": \"\",\n \"notes\": \"\",\n \"termsAndConditions\": \"\",\n \"memo\": \"\",\n \"invoiceSchulder\": {\n \"repeat\": \"\",\n \"schulderType\": \"\",\n \"dueType\": \"\",\n \"endValue\": \"\",\n \"dueDateAfterHowManyDay\": \"\",\n \"invoiceSubSchulders\": [\n {\n \"dueDate\": \"\",\n \"mustBeCreateInDateTime\": \"\",\n \"deActiveDateTime\": \"\",\n \"isInvoiceCreated\": \"\",\n \"isActive\": \"\",\n \"invoiceCode\": \"\"\n },\n {\n \"dueDate\": \"\",\n \"mustBeCreateInDateTime\": \"\",\n \"deActiveDateTime\": \"\",\n \"isInvoiceCreated\": \"\",\n \"isActive\": \"\",\n \"invoiceCode\": \"\"\n }\n ]\n },\n \"invoiceItems\": [\n {\n \"code\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"quantity\": \"\",\n \"discountType\": \"\",\n \"discountPercent\": \"\",\n \"discountAmount\": \"\",\n \"tax\": \"\",\n \"taxRate\": \"\",\n \"price\": \"\",\n \"totalPrice\": \"\",\n \"amount\": \"\"\n },\n {\n \"code\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"quantity\": \"\",\n \"discountType\": \"\",\n \"discountPercent\": \"\",\n \"discountAmount\": \"\",\n \"tax\": \"\",\n \"taxRate\": \"\",\n \"price\": \"\",\n \"totalPrice\": \"\",\n \"amount\": \"\"\n }\n ],\n \"isSendAttachmentsAfterPayment\": \"\",\n \"isSendNotesAndTermsAfterPayment\": \"\",\n \"isSendTermsAfterPayment\": \"\",\n \"attachFileIds\": [\n \"\",\n \"\"\n ],\n \"attachFileAddresses\": [\n \"\",\n \"\"\n ],\n \"qrCodeFileName\": \"\"\n },\n {\n \"code\": \"\",\n \"parentCode\": \"\",\n \"paymentCode\": \"\",\n \"ccToes\": [\n {\n \"emailAddress\": \"\"\n },\n {\n \"emailAddress\": \"\"\n }\n ],\n \"billToes\": [\n {\n \"addressBook\": {\n \"code\": \"\",\n \"firstName\": \"\",\n \"lastName\": \"\",\n \"userPhotoFileAddress\": \"\",\n \"userPhotoFileId\": \"\",\n \"email\": \"\",\n \"phone\": \"\",\n \"businessName\": \"\",\n \"additionalInfo\": \"\",\n \"memo\": \"\",\n \"zipCode\": \"\",\n \"state\": \"\",\n \"city\": \"\",\n \"location\": \"\",\n \"isBusiness\": \"\",\n \"nationalId\": \"\"\n }\n },\n {\n \"addressBook\": {\n \"code\": \"\",\n \"firstName\": \"\",\n \"lastName\": \"\",\n \"userPhotoFileAddress\": \"\",\n \"userPhotoFileId\": \"\",\n \"email\": \"\",\n \"phone\": \"\",\n \"businessName\": \"\",\n \"additionalInfo\": \"\",\n \"memo\": \"\",\n \"zipCode\": \"\",\n \"state\": \"\",\n \"city\": \"\",\n \"location\": \"\",\n \"isBusiness\": \"\",\n \"nationalId\": \"\"\n }\n }\n ],\n \"status\": \"\",\n \"paidManualDescription\": \"\",\n \"saveToTemplate\": \"\",\n \"invoiceNumber\": \"\",\n \"invoiceTitle\": \"\",\n \"invoiceDateTime\": \"\",\n \"dueDate\": \"\",\n \"payedDateTime\": \"\",\n \"canceledDateTime\": \"\",\n \"subTotal\": \"\",\n \"itemsDiscountAmount\": \"\",\n \"totalDiscountAmount\": \"\",\n \"totalDiscountPercent\": \"\",\n \"totalDiscountType\": \"\",\n \"sumDiscountAmount\": \"\",\n \"totalTaxtionAmount\": \"\",\n \"shipping\": \"\",\n \"total\": \"\",\n \"notes\": \"\",\n \"termsAndConditions\": \"\",\n \"memo\": \"\",\n \"invoiceSchulder\": {\n \"repeat\": \"\",\n \"schulderType\": \"\",\n \"dueType\": \"\",\n \"endValue\": \"\",\n \"dueDateAfterHowManyDay\": \"\",\n \"invoiceSubSchulders\": [\n {\n \"dueDate\": \"\",\n \"mustBeCreateInDateTime\": \"\",\n \"deActiveDateTime\": \"\",\n \"isInvoiceCreated\": \"\",\n \"isActive\": \"\",\n \"invoiceCode\": \"\"\n },\n {\n \"dueDate\": \"\",\n \"mustBeCreateInDateTime\": \"\",\n \"deActiveDateTime\": \"\",\n \"isInvoiceCreated\": \"\",\n \"isActive\": \"\",\n \"invoiceCode\": \"\"\n }\n ]\n },\n \"invoiceItems\": [\n {\n \"code\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"quantity\": \"\",\n \"discountType\": \"\",\n \"discountPercent\": \"\",\n \"discountAmount\": \"\",\n \"tax\": \"\",\n \"taxRate\": \"\",\n \"price\": \"\",\n \"totalPrice\": \"\",\n \"amount\": \"\"\n },\n {\n \"code\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"quantity\": \"\",\n \"discountType\": \"\",\n \"discountPercent\": \"\",\n \"discountAmount\": \"\",\n \"tax\": \"\",\n \"taxRate\": \"\",\n \"price\": \"\",\n \"totalPrice\": \"\",\n \"amount\": \"\"\n }\n ],\n \"isSendAttachmentsAfterPayment\": \"\",\n \"isSendNotesAndTermsAfterPayment\": \"\",\n \"isSendTermsAfterPayment\": \"\",\n \"attachFileIds\": [\n \"\",\n \"\"\n ],\n \"attachFileAddresses\": [\n \"\",\n \"\"\n ],\n \"qrCodeFileName\": \"\"\n }\n ]\n}" + } + ] + }, + { + "name": "لیست فاکتور ها زمانبندی شده", + "request": { + "auth": { + "type": "bearer" + }, + "method": "GET", + "header": [], + "url": { + "raw": "https://api.payping.ir/v1/Invoice/ListSchedule?offset=&limit=10&status=5&isArchived=&searchByDueDate=&searchByCreateDate=&searchDateFrom=&searchDateTo=&search=&addressBookCode=&invoiceCode=", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "Invoice", + "ListSchedule" + ], + "query": [ + { + "key": "offset", + "value": "" + }, + { + "key": "limit", + "value": "10" + }, + { + "key": "status", + "value": "5", + "description": "فیلتر وضعیت" + }, + { + "key": "isArchived", + "value": "", + "description": "فیلتر بایگانی" + }, + { + "key": "searchByDueDate", + "value": "", + "description": "فیلتر با تاریخ سررسید" + }, + { + "key": "searchByCreateDate", + "value": "", + "description": "فیلتر با تاریخ ثبت" + }, + { + "key": "searchDateFrom", + "value": "", + "description": "شروع از تاریخ" + }, + { + "key": "searchDateTo", + "value": "", + "description": "تا تاریخ" + }, + { + "key": "search", + "value": "", + "description": "متن جستجو" + }, + { + "key": "addressBookCode", + "value": "", + "description": "فیلتر بر اساس کد مشتری" + }, + { + "key": "invoiceCode", + "value": "", + "description": "فیلتر براساس کد فاکتور" + } + ] + } + }, + "response": [ + { + "name": "نمایش لیست فاکتور ها زمانبندی شده", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "https://api.payping.ir/v1/Invoice/ListSchedule?offset=&limit=10&status=5&isArchived=&searchByDueDate=&searchByCreateDate=&searchDateFrom=&searchDateTo=&search=&addressBookCode=&invoiceCode=", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "Invoice", + "ListSchedule" + ], + "query": [ + { + "key": "offset", + "value": "" + }, + { + "key": "limit", + "value": "10" + }, + { + "key": "status", + "value": "5" + }, + { + "key": "isArchived", + "value": "" + }, + { + "key": "searchByDueDate", + "value": "" + }, + { + "key": "searchByCreateDate", + "value": "" + }, + { + "key": "searchDateFrom", + "value": "" + }, + { + "key": "searchDateTo", + "value": "" + }, + { + "key": "search", + "value": "" + }, + { + "key": "addressBookCode", + "value": "" + }, + { + "key": "invoiceCode", + "value": "" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "[\n {\n \"code\": \"\",\n \"invoiceNumber\": \"\",\n \"invoiceDateTime\": \"\",\n \"dueDate\": \"\",\n \"payedDateTime\": \"\",\n \"canceledDateTime\": \"\",\n \"invoiceTitle\": \"\",\n \"status\": \"\",\n \"total\": \"\",\n \"ccToes\": [\n {\n \"emailAddress\": \"\"\n },\n {\n \"emailAddress\": \"\"\n }\n ],\n \"billToes\": [\n {\n \"addressBook\": {\n \"code\": \"\",\n \"email\": \"\",\n \"phone\": \"\",\n \"firstName\": \"\",\n \"lastName\": \"\",\n \"businessName\": \"\",\n \"nationalId\": \"\",\n \"isBusiness\": \"\"\n }\n },\n {\n \"addressBook\": {\n \"code\": \"\",\n \"email\": \"\",\n \"phone\": \"\",\n \"firstName\": \"\",\n \"lastName\": \"\",\n \"businessName\": \"\",\n \"nationalId\": \"\",\n \"isBusiness\": \"\"\n }\n }\n ]\n },\n {\n \"code\": \"\",\n \"invoiceNumber\": \"\",\n \"invoiceDateTime\": \"\",\n \"dueDate\": \"\",\n \"payedDateTime\": \"\",\n \"canceledDateTime\": \"\",\n \"invoiceTitle\": \"\",\n \"status\": \"\",\n \"total\": \"\",\n \"ccToes\": [\n {\n \"emailAddress\": \"\"\n },\n {\n \"emailAddress\": \"\"\n }\n ],\n \"billToes\": [\n {\n \"addressBook\": {\n \"code\": \"\",\n \"email\": \"\",\n \"phone\": \"\",\n \"firstName\": \"\",\n \"lastName\": \"\",\n \"businessName\": \"\",\n \"nationalId\": \"\",\n \"isBusiness\": \"\"\n }\n },\n {\n \"addressBook\": {\n \"code\": \"\",\n \"email\": \"\",\n \"phone\": \"\",\n \"firstName\": \"\",\n \"lastName\": \"\",\n \"businessName\": \"\",\n \"nationalId\": \"\",\n \"isBusiness\": \"\"\n }\n }\n ]\n }\n]" + } + ] + }, + { + "name": "تعداد فاکتور ها زمانبندی شده", + "request": { + "auth": { + "type": "bearer" + }, + "method": "GET", + "header": [], + "url": { + "raw": "https://api.payping.ir/v1/Invoice/ListScheduleCount?status=5&isArchived=&searchByDueDate=&searchByCreateDate=&searchDateFrom=&searchDateTo=&search=&addressBookCode=&invoiceCode=", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "Invoice", + "ListScheduleCount" + ], + "query": [ + { + "key": "status", + "value": "5", + "description": "فیلتر وضعیت" + }, + { + "key": "isArchived", + "value": "", + "description": "فیلتر بایگانی" + }, + { + "key": "searchByDueDate", + "value": "", + "description": "فیلتر با تاریخ سررسید" + }, + { + "key": "searchByCreateDate", + "value": "", + "description": "فیلتر با تاریخ ثبت" + }, + { + "key": "searchDateFrom", + "value": "", + "description": "شروع از تاریخ" + }, + { + "key": "searchDateTo", + "value": "", + "description": "تا تاریخ" + }, + { + "key": "search", + "value": "", + "description": "متن جستجو" + }, + { + "key": "addressBookCode", + "value": "", + "description": "فیلتر بر اساس کد مشتری" + }, + { + "key": "invoiceCode", + "value": "", + "description": "فیلتر براساس کد فاکتور" + } + ] + } + }, + "response": [ + { + "name": "نمایش تعداد فاکتور ها زمانبندی شده", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "https://api.payping.ir/v1/Invoice/ListScheduleCount?status=5&isArchived=&searchByDueDate=&searchByCreateDate=&searchDateFrom=&searchDateTo=&search=&addressBookCode=&invoiceCode=", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "Invoice", + "ListScheduleCount" + ], + "query": [ + { + "key": "status", + "value": "5" + }, + { + "key": "isArchived", + "value": "" + }, + { + "key": "searchByDueDate", + "value": "" + }, + { + "key": "searchByCreateDate", + "value": "" + }, + { + "key": "searchDateFrom", + "value": "" + }, + { + "key": "searchDateTo", + "value": "" + }, + { + "key": "search", + "value": "" + }, + { + "key": "addressBookCode", + "value": "" + }, + { + "key": "invoiceCode", + "value": "" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"count\": \"\"\n}" + } + ] + }, + { + "name": "حذف فاکتور زمانبندی شده", + "request": { + "auth": { + "type": "bearer" + }, + "method": "DELETE", + "header": [], + "url": { + "raw": "https://api.payping.ir/v1/Invoice/DeleteSchedule/:code", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "Invoice", + "DeleteSchedule", + ":code" + ], + "variable": [ + { + "key": "code", + "value": "", + "description": "کلید یکتای فاکتور زمانبندی شده" + } + ] + } + }, + "response": [ + { + "name": "نمایش کلید یکتای فاکتور زمانبندی شده", + "originalRequest": { + "method": "DELETE", + "header": [], + "url": { + "raw": "https://api.payping.ir/v1/Invoice/DeleteSchedule/", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "Invoice", + "DeleteSchedule", + "" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "\"\"" + } + ] + }, + { + "name": "دریافت اطلاعات زمانبندی شده فاکتور", + "request": { + "auth": { + "type": "bearer" + }, + "method": "GET", + "header": [], + "url": { + "raw": "https://api.payping.ir/v1/Invoice/Subschedulers/:code", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "Invoice", + "Subschedulers", + ":code" + ], + "variable": [ + { + "key": "code", + "value": "", + "description": { + "content": "", + "type": "text/plain" + } + } + ] + } + }, + "response": [ + { + "name": "اطلاعات زمانبندی شده فاکتور", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "https://api.payping.ir/v1/Invoice/Subschedulers/", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "Invoice", + "Subschedulers", + "" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "[\n {\n \"dueDate\": \"\",\n \"mustBeCreateInDateTime\": \"\",\n \"deActiveDateTime\": \"\",\n \"isInvoiceCreated\": \"\",\n \"isActive\": \"\",\n \"invoiceCode\": \"\"\n },\n {\n \"dueDate\": \"\",\n \"mustBeCreateInDateTime\": \"\",\n \"deActiveDateTime\": \"\",\n \"isInvoiceCreated\": \"\",\n \"isActive\": \"\",\n \"invoiceCode\": \"\"\n }\n]" + } + ] + } + ], + "_postman_isSubFolder": true + }, + { + "name": "Template", + "item": [ + { + "name": "{code}", + "item": [ + { + "name": "دریافت جزئیات قالب", + "request": { + "auth": { + "type": "bearer" + }, + "method": "GET", + "header": [], + "url": { + "raw": "https://api.payping.ir/v1/Template/:code", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "Template", + ":code" + ], + "variable": [ + { + "key": "code", + "value": "", + "description": "کلید یکتای قالب" + } + ] + } + }, + "response": [ + { + "name": "نمایش قالب", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "https://api.payping.ir/v1/Template/", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "Template", + "" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"code\": \"\",\n \"templateName\": \"\",\n \"subTotal\": \"\",\n \"itemsDiscountAmount\": \"\",\n \"totalDiscountAmount\": \"\",\n \"totalDiscountPercent\": \"\",\n \"totalDiscountType\": \"\",\n \"sumDiscountAmount\": \"\",\n \"totalTaxtionAmount\": \"\",\n \"shipping\": \"\",\n \"total\": \"\",\n \"notes\": \"\",\n \"termsAndConditions\": \"\",\n \"memo\": \"\",\n \"invoiceTemplateItems\": [\n {\n \"code\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"quantity\": \"\",\n \"discountType\": \"\",\n \"discountPercent\": \"\",\n \"discountAmount\": \"\",\n \"tax\": \"\",\n \"taxRate\": \"\",\n \"price\": \"\",\n \"totalPrice\": \"\",\n \"amount\": \"\"\n },\n {\n \"code\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"quantity\": \"\",\n \"discountType\": \"\",\n \"discountPercent\": \"\",\n \"discountAmount\": \"\",\n \"tax\": \"\",\n \"taxRate\": \"\",\n \"price\": \"\",\n \"totalPrice\": \"\",\n \"amount\": \"\"\n }\n ],\n \"invoiceSchulder\": {\n \"repeat\": 1,\n \"schulderType\": \"\",\n \"dueType\": \"\",\n \"endValue\": \"1\",\n \"dueDateAfterHowManyDay\": 2\n },\n \"isSendAttachmentsAfterPayment\": \"\",\n \"isSendNotesAndTermsAfterPayment\": \"\",\n \"isSendTermsAfterPayment\": \"\",\n \"attachFileIds\": [\n \"\",\n \"\"\n ],\n \"attachFileAddresses\": [\n \"\",\n \"\"\n ]\n}" + } + ] + }, + { + "name": "بروزرسانی قالب", + "request": { + "auth": { + "type": "bearer" + }, + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"code\": \"\",\n \"templateName\": \"\",\n \"totalDiscountValue\": \"\",\n \"totalDiscountType\": \"\",\n \"shipping\": \"\",\n \"notes\": \"\",\n \"termsAndConditions\": \"\",\n \"memo\": \"\",\n \"invoiceSchulder\": {\n \"repeat\": 1,\n \"schulderType\": \"\",\n \"dueType\": \"\",\n \"endValue\": \"1\",\n \"dueDateAfterHowManyDay\": 2\n },\n \"invoiceTemplateItems\": [\n {\n \"code\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"tax\": \"\",\n \"quantity\": 1,\n \"discountValue\": \"\",\n \"discountType\": \"\",\n \"discountCouponCode\": \"\",\n \"price\": \"\"\n },\n {\n \"code\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"tax\": \"\",\n \"quantity\": 1,\n \"discountValue\": \"\",\n \"discountType\": \"\",\n \"discountCouponCode\": \"\",\n \"price\": \"\"\n }\n ],\n \"isSendAttachmentsAfterPayment\": \"\",\n \"isSendNotesAndTermsAfterPayment\": \"\",\n \"isSendTermsAfterPayment\": \"\",\n \"attachmentsIds\": [\n \"\",\n \"\"\n ]\n}" + }, + "url": { + "raw": "https://api.payping.ir/v1/Template/:code", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "Template", + ":code" + ], + "variable": [ + { + "key": "code", + "value": "", + "description": "کلید یکتای قالب" + } + ] + } + }, + "response": [ + { + "name": "نمایش قالب", + "originalRequest": { + "method": "PUT", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"code\": \"\",\n \"templateName\": \"\",\n \"totalDiscountValue\": \"\",\n \"totalDiscountType\": \"\",\n \"shipping\": \"\",\n \"notes\": \"\",\n \"termsAndConditions\": \"\",\n \"memo\": \"\",\n \"invoiceSchulder\": {\n \"repeat\": 1,\n \"schulderType\": \"\",\n \"dueType\": \"\",\n \"endValue\": \"1\",\n \"dueDateAfterHowManyDay\": 2\n },\n \"invoiceTemplateItems\": [\n {\n \"code\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"tax\": \"\",\n \"quantity\": 1,\n \"discountValue\": \"\",\n \"discountType\": \"\",\n \"discountCouponCode\": \"\",\n \"price\": \"\"\n },\n {\n \"code\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"tax\": \"\",\n \"quantity\": 1,\n \"discountValue\": \"\",\n \"discountType\": \"\",\n \"discountCouponCode\": \"\",\n \"price\": \"\"\n }\n ],\n \"isSendAttachmentsAfterPayment\": \"\",\n \"isSendNotesAndTermsAfterPayment\": \"\",\n \"isSendTermsAfterPayment\": \"\",\n \"attachmentsIds\": [\n \"\",\n \"\"\n ]\n}" + }, + "url": { + "raw": "https://api.payping.ir/v1/Template/", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "Template", + "" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"code\": \"\",\n \"templateName\": \"\",\n \"subTotal\": \"\",\n \"itemsDiscountAmount\": \"\",\n \"totalDiscountAmount\": \"\",\n \"totalDiscountPercent\": \"\",\n \"totalDiscountType\": \"\",\n \"sumDiscountAmount\": \"\",\n \"totalTaxtionAmount\": \"\",\n \"shipping\": \"\",\n \"total\": \"\",\n \"notes\": \"\",\n \"termsAndConditions\": \"\",\n \"memo\": \"\",\n \"invoiceTemplateItems\": [\n {\n \"code\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"quantity\": \"\",\n \"discountType\": \"\",\n \"discountPercent\": \"\",\n \"discountAmount\": \"\",\n \"tax\": \"\",\n \"taxRate\": \"\",\n \"price\": \"\",\n \"totalPrice\": \"\",\n \"amount\": \"\"\n },\n {\n \"code\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"quantity\": \"\",\n \"discountType\": \"\",\n \"discountPercent\": \"\",\n \"discountAmount\": \"\",\n \"tax\": \"\",\n \"taxRate\": \"\",\n \"price\": \"\",\n \"totalPrice\": \"\",\n \"amount\": \"\"\n }\n ],\n \"invoiceSchulder\": {\n \"repeat\": 1,\n \"schulderType\": \"\",\n \"dueType\": \"\",\n \"endValue\": \"1\",\n \"dueDateAfterHowManyDay\": 2\n },\n \"isSendAttachmentsAfterPayment\": \"\",\n \"isSendNotesAndTermsAfterPayment\": \"\",\n \"isSendTermsAfterPayment\": \"\",\n \"attachFileIds\": [\n \"\",\n \"\"\n ],\n \"attachFileAddresses\": [\n \"\",\n \"\"\n ]\n}" + } + ] + }, + { + "name": "حذف قالب", + "request": { + "auth": { + "type": "bearer" + }, + "method": "DELETE", + "header": [], + "url": { + "raw": "https://api.payping.ir/v1/Template/:code", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "Template", + ":code" + ], + "variable": [ + { + "key": "code", + "value": "", + "description": "کلید یکتای قالب" + } + ] + } + }, + "response": [ + { + "name": "نمایش کلید یکتای قالب", + "originalRequest": { + "method": "DELETE", + "header": [], + "url": { + "raw": "https://api.payping.ir/v1/Template/", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "Template", + "" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "\"\"" + } + ] + } + ], + "_postman_isSubFolder": true + }, + { + "name": "ساخت قالب جدید", + "request": { + "auth": { + "type": "bearer" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"templateName\": \"\",\n \"totalDiscountValue\": \"\",\n \"totalDiscountType\": \"\",\n \"shipping\": \"\",\n \"notes\": \"\",\n \"termsAndConditions\": \"\",\n \"memo\": \"\",\n \"invoiceSchulder\": {\n \"repeat\": 1,\n \"schulderType\": \"\",\n \"dueType\": \"\",\n \"endValue\": \"1\",\n \"dueDateAfterHowManyDay\": 2\n },\n \"invoiceTemplateItems\": [\n {\n \"code\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"tax\": \"\",\n \"quantity\": 1,\n \"discountValue\": \"\",\n \"discountType\": \"\",\n \"discountCouponCode\": \"\",\n \"price\": \"\"\n },\n {\n \"code\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"tax\": \"\",\n \"quantity\": 1,\n \"discountValue\": \"\",\n \"discountType\": \"\",\n \"discountCouponCode\": \"\",\n \"price\": \"\"\n }\n ],\n \"isSendAttachmentsAfterPayment\": \"\",\n \"isSendNotesAndTermsAfterPayment\": \"\",\n \"isSendTermsAfterPayment\": \"\",\n \"attachmentsIds\": [\n \"\",\n \"\"\n ]\n}" + }, + "url": { + "raw": "https://api.payping.ir/v1/Template", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "Template" + ] + } + }, + "response": [ + { + "name": "نمایش قالب", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"templateName\": \"\",\n \"totalDiscountValue\": \"\",\n \"totalDiscountType\": \"\",\n \"shipping\": \"\",\n \"notes\": \"\",\n \"termsAndConditions\": \"\",\n \"memo\": \"\",\n \"invoiceSchulder\": {\n \"repeat\": 1,\n \"schulderType\": \"\",\n \"dueType\": \"\",\n \"endValue\": \"1\",\n \"dueDateAfterHowManyDay\": 2\n },\n \"invoiceTemplateItems\": [\n {\n \"code\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"tax\": \"\",\n \"quantity\": 1,\n \"discountValue\": \"\",\n \"discountType\": \"\",\n \"discountCouponCode\": \"\",\n \"price\": \"\"\n },\n {\n \"code\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"tax\": \"\",\n \"quantity\": 1,\n \"discountValue\": \"\",\n \"discountType\": \"\",\n \"discountCouponCode\": \"\",\n \"price\": \"\"\n }\n ],\n \"isSendAttachmentsAfterPayment\": \"\",\n \"isSendNotesAndTermsAfterPayment\": \"\",\n \"isSendTermsAfterPayment\": \"\",\n \"attachmentsIds\": [\n \"\",\n \"\"\n ]\n}" + }, + "url": { + "raw": "https://api.payping.ir/v1/Template", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "Template" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"code\": \"\",\n \"templateName\": \"\",\n \"subTotal\": \"\",\n \"itemsDiscountAmount\": \"\",\n \"totalDiscountAmount\": \"\",\n \"totalDiscountPercent\": \"\",\n \"totalDiscountType\": \"\",\n \"sumDiscountAmount\": \"\",\n \"totalTaxtionAmount\": \"\",\n \"shipping\": \"\",\n \"total\": \"\",\n \"notes\": \"\",\n \"termsAndConditions\": \"\",\n \"memo\": \"\",\n \"invoiceTemplateItems\": [\n {\n \"code\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"quantity\": \"\",\n \"discountType\": \"\",\n \"discountPercent\": \"\",\n \"discountAmount\": \"\",\n \"tax\": \"\",\n \"taxRate\": \"\",\n \"price\": \"\",\n \"totalPrice\": \"\",\n \"amount\": \"\"\n },\n {\n \"code\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"quantity\": \"\",\n \"discountType\": \"\",\n \"discountPercent\": \"\",\n \"discountAmount\": \"\",\n \"tax\": \"\",\n \"taxRate\": \"\",\n \"price\": \"\",\n \"totalPrice\": \"\",\n \"amount\": \"\"\n }\n ],\n \"invoiceSchulder\": {\n \"repeat\": 1,\n \"schulderType\": \"\",\n \"dueType\": \"\",\n \"endValue\": \"1\",\n \"dueDateAfterHowManyDay\": 2\n },\n \"isSendAttachmentsAfterPayment\": \"\",\n \"isSendNotesAndTermsAfterPayment\": \"\",\n \"isSendTermsAfterPayment\": \"\",\n \"attachFileIds\": [\n \"\",\n \"\"\n ],\n \"attachFileAddresses\": [\n \"\",\n \"\"\n ]\n}" + } + ] + }, + { + "name": "لیست قالب ها", + "request": { + "auth": { + "type": "bearer" + }, + "method": "GET", + "header": [], + "url": { + "raw": "https://api.payping.ir/v1/Template/List?offset=&limit=10&search=&code=", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "Template", + "List" + ], + "query": [ + { + "key": "offset", + "value": "", + "description": "شروع صفحه از شماره 1" + }, + { + "key": "limit", + "value": "10", + "description": "تعداد سطر بازگشت داده ها مثال : 10" + }, + { + "key": "search", + "value": "", + "description": "متن مورد نظر جهت جستجو" + }, + { + "key": "code", + "value": "", + "description": "کد قالب" + } + ] + } + }, + "response": [ + { + "name": "نمایش قالب ها", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "https://api.payping.ir/v1/Template/List?offset=&limit=10&search=&code=", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "Template", + "List" + ], + "query": [ + { + "key": "offset", + "value": "" + }, + { + "key": "limit", + "value": "10" + }, + { + "key": "search", + "value": "" + }, + { + "key": "code", + "value": "" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "[\n {\n \"code\": \"\",\n \"templateName\": \"\",\n \"hasSchulder\": \"\"\n },\n {\n \"code\": \"\",\n \"templateName\": \"\",\n \"hasSchulder\": \"\"\n }\n]" + } + ] + }, + { + "name": "تعداد قالب ها", + "request": { + "auth": { + "type": "bearer" + }, + "method": "GET", + "header": [], + "url": { + "raw": "https://api.payping.ir/v1/Template/ListCount?search=&code=", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "Template", + "ListCount" + ], + "query": [ + { + "key": "search", + "value": "", + "description": "متن مورد نظر جهت جستجو" + }, + { + "key": "code", + "value": "", + "description": "کد قالب" + } + ] + } + }, + "response": [ + { + "name": "نمایش تعداد قالب ها", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "https://api.payping.ir/v1/Template/ListCount?search=&code=", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "Template", + "ListCount" + ], + "query": [ + { + "key": "search", + "value": "" + }, + { + "key": "code", + "value": "" + } + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"count\": \"\"\n}" + } + ] + }, + { + "name": "ارسال فاکتور جدید با استفاده از قالب - پیشرفته", + "request": { + "auth": { + "type": "bearer" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"templateCode\": \"\",\n \"invoiceTitle\": \"\",\n \"invoiceNumber\": 1,\n \"invoiceDateTime\": \"\",\n \"dueDate\": \"\",\n \"ccToes\": [\n {\n \"emailAddress\": \"\"\n },\n {\n \"emailAddress\": \"\"\n }\n ],\n \"billToes\": [\n {\n \"addressBookCode\": \"\"\n },\n {\n \"addressBookCode\": \"\"\n }\n ],\n \"isDevicePayment\": \"\"\n}" + }, + "url": { + "raw": "https://api.payping.ir/v1/Invoice/SendByTemplateAdvance", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "Invoice", + "SendByTemplateAdvance" + ] + } + }, + "response": [ + { + "name": "نمایش فاکتور", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"templateCode\": \"\",\n \"invoiceTitle\": \"\",\n \"invoiceNumber\": 1,\n \"invoiceDateTime\": \"\",\n \"dueDate\": \"\",\n \"ccToes\": [\n {\n \"emailAddress\": \"\"\n },\n {\n \"emailAddress\": \"\"\n }\n ],\n \"billToes\": [\n {\n \"addressBookCode\": \"\"\n },\n {\n \"addressBookCode\": \"\"\n }\n ],\n \"isDevicePayment\": \"\"\n}" + }, + "url": { + "raw": "https://api.payping.ir/v1/Invoice/SendByTemplateAdvance", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "Invoice", + "SendByTemplateAdvance" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "[\n {\n \"code\": \"\",\n \"parentCode\": \"\",\n \"paymentCode\": \"\",\n \"ccToes\": [\n {\n \"emailAddress\": \"\"\n },\n {\n \"emailAddress\": \"\"\n }\n ],\n \"billToes\": [\n {\n \"addressBook\": {\n \"code\": \"\",\n \"firstName\": \"\",\n \"lastName\": \"\",\n \"userPhotoFileAddress\": \"\",\n \"userPhotoFileId\": \"\",\n \"email\": \"\",\n \"phone\": \"\",\n \"businessName\": \"\",\n \"additionalInfo\": \"\",\n \"memo\": \"\",\n \"zipCode\": \"\",\n \"state\": \"\",\n \"city\": \"\",\n \"location\": \"\",\n \"isBusiness\": \"\",\n \"nationalId\": \"\"\n }\n },\n {\n \"addressBook\": {\n \"code\": \"\",\n \"firstName\": \"\",\n \"lastName\": \"\",\n \"userPhotoFileAddress\": \"\",\n \"userPhotoFileId\": \"\",\n \"email\": \"\",\n \"phone\": \"\",\n \"businessName\": \"\",\n \"additionalInfo\": \"\",\n \"memo\": \"\",\n \"zipCode\": \"\",\n \"state\": \"\",\n \"city\": \"\",\n \"location\": \"\",\n \"isBusiness\": \"\",\n \"nationalId\": \"\"\n }\n }\n ],\n \"status\": \"\",\n \"paidManualDescription\": \"\",\n \"saveToTemplate\": \"\",\n \"invoiceNumber\": \"\",\n \"invoiceTitle\": \"\",\n \"invoiceDateTime\": \"\",\n \"dueDate\": \"\",\n \"payedDateTime\": \"\",\n \"canceledDateTime\": \"\",\n \"subTotal\": \"\",\n \"itemsDiscountAmount\": \"\",\n \"totalDiscountAmount\": \"\",\n \"totalDiscountPercent\": \"\",\n \"totalDiscountType\": \"\",\n \"sumDiscountAmount\": \"\",\n \"totalTaxtionAmount\": \"\",\n \"shipping\": \"\",\n \"total\": \"\",\n \"notes\": \"\",\n \"termsAndConditions\": \"\",\n \"memo\": \"\",\n \"invoiceSchulder\": {\n \"repeat\": \"\",\n \"schulderType\": \"\",\n \"dueType\": \"\",\n \"endValue\": \"\",\n \"dueDateAfterHowManyDay\": \"\",\n \"invoiceSubSchulders\": [\n {\n \"dueDate\": \"\",\n \"mustBeCreateInDateTime\": \"\",\n \"deActiveDateTime\": \"\",\n \"isInvoiceCreated\": \"\",\n \"isActive\": \"\",\n \"invoiceCode\": \"\"\n },\n {\n \"dueDate\": \"\",\n \"mustBeCreateInDateTime\": \"\",\n \"deActiveDateTime\": \"\",\n \"isInvoiceCreated\": \"\",\n \"isActive\": \"\",\n \"invoiceCode\": \"\"\n }\n ]\n },\n \"invoiceItems\": [\n {\n \"code\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"quantity\": \"\",\n \"discountType\": \"\",\n \"discountPercent\": \"\",\n \"discountAmount\": \"\",\n \"tax\": \"\",\n \"taxRate\": \"\",\n \"price\": \"\",\n \"totalPrice\": \"\",\n \"amount\": \"\"\n },\n {\n \"code\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"quantity\": \"\",\n \"discountType\": \"\",\n \"discountPercent\": \"\",\n \"discountAmount\": \"\",\n \"tax\": \"\",\n \"taxRate\": \"\",\n \"price\": \"\",\n \"totalPrice\": \"\",\n \"amount\": \"\"\n }\n ],\n \"isSendAttachmentsAfterPayment\": \"\",\n \"isSendNotesAndTermsAfterPayment\": \"\",\n \"isSendTermsAfterPayment\": \"\",\n \"attachFileIds\": [\n \"\",\n \"\"\n ],\n \"attachFileAddresses\": [\n \"\",\n \"\"\n ],\n \"qrCodeFileName\": \"\"\n },\n {\n \"code\": \"\",\n \"parentCode\": \"\",\n \"paymentCode\": \"\",\n \"ccToes\": [\n {\n \"emailAddress\": \"\"\n },\n {\n \"emailAddress\": \"\"\n }\n ],\n \"billToes\": [\n {\n \"addressBook\": {\n \"code\": \"\",\n \"firstName\": \"\",\n \"lastName\": \"\",\n \"userPhotoFileAddress\": \"\",\n \"userPhotoFileId\": \"\",\n \"email\": \"\",\n \"phone\": \"\",\n \"businessName\": \"\",\n \"additionalInfo\": \"\",\n \"memo\": \"\",\n \"zipCode\": \"\",\n \"state\": \"\",\n \"city\": \"\",\n \"location\": \"\",\n \"isBusiness\": \"\",\n \"nationalId\": \"\"\n }\n },\n {\n \"addressBook\": {\n \"code\": \"\",\n \"firstName\": \"\",\n \"lastName\": \"\",\n \"userPhotoFileAddress\": \"\",\n \"userPhotoFileId\": \"\",\n \"email\": \"\",\n \"phone\": \"\",\n \"businessName\": \"\",\n \"additionalInfo\": \"\",\n \"memo\": \"\",\n \"zipCode\": \"\",\n \"state\": \"\",\n \"city\": \"\",\n \"location\": \"\",\n \"isBusiness\": \"\",\n \"nationalId\": \"\"\n }\n }\n ],\n \"status\": \"\",\n \"paidManualDescription\": \"\",\n \"saveToTemplate\": \"\",\n \"invoiceNumber\": \"\",\n \"invoiceTitle\": \"\",\n \"invoiceDateTime\": \"\",\n \"dueDate\": \"\",\n \"payedDateTime\": \"\",\n \"canceledDateTime\": \"\",\n \"subTotal\": \"\",\n \"itemsDiscountAmount\": \"\",\n \"totalDiscountAmount\": \"\",\n \"totalDiscountPercent\": \"\",\n \"totalDiscountType\": \"\",\n \"sumDiscountAmount\": \"\",\n \"totalTaxtionAmount\": \"\",\n \"shipping\": \"\",\n \"total\": \"\",\n \"notes\": \"\",\n \"termsAndConditions\": \"\",\n \"memo\": \"\",\n \"invoiceSchulder\": {\n \"repeat\": \"\",\n \"schulderType\": \"\",\n \"dueType\": \"\",\n \"endValue\": \"\",\n \"dueDateAfterHowManyDay\": \"\",\n \"invoiceSubSchulders\": [\n {\n \"dueDate\": \"\",\n \"mustBeCreateInDateTime\": \"\",\n \"deActiveDateTime\": \"\",\n \"isInvoiceCreated\": \"\",\n \"isActive\": \"\",\n \"invoiceCode\": \"\"\n },\n {\n \"dueDate\": \"\",\n \"mustBeCreateInDateTime\": \"\",\n \"deActiveDateTime\": \"\",\n \"isInvoiceCreated\": \"\",\n \"isActive\": \"\",\n \"invoiceCode\": \"\"\n }\n ]\n },\n \"invoiceItems\": [\n {\n \"code\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"quantity\": \"\",\n \"discountType\": \"\",\n \"discountPercent\": \"\",\n \"discountAmount\": \"\",\n \"tax\": \"\",\n \"taxRate\": \"\",\n \"price\": \"\",\n \"totalPrice\": \"\",\n \"amount\": \"\"\n },\n {\n \"code\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"quantity\": \"\",\n \"discountType\": \"\",\n \"discountPercent\": \"\",\n \"discountAmount\": \"\",\n \"tax\": \"\",\n \"taxRate\": \"\",\n \"price\": \"\",\n \"totalPrice\": \"\",\n \"amount\": \"\"\n }\n ],\n \"isSendAttachmentsAfterPayment\": \"\",\n \"isSendNotesAndTermsAfterPayment\": \"\",\n \"isSendTermsAfterPayment\": \"\",\n \"attachFileIds\": [\n \"\",\n \"\"\n ],\n \"attachFileAddresses\": [\n \"\",\n \"\"\n ],\n \"qrCodeFileName\": \"\"\n }\n]" + } + ] + }, + { + "name": "ارسال فاکتور جدید با استفاده از قالب - سریع", + "request": { + "auth": { + "type": "bearer" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"templateCode\": \"\",\n \"emailAddresses\": [\n \"\",\n \"\"\n ],\n \"addressBook\": {\n \"firstName\": \"\",\n \"lastName\": \"\",\n \"userPhotoFileId\": \"\",\n \"email\": \"\",\n \"phone\": \"\",\n \"businessName\": \"\",\n \"additionalInfo\": \"\",\n \"zipCode\": \"\",\n \"state\": \"\",\n \"city\": \"\",\n \"location\": \"\",\n \"memo\": \"\",\n \"isBusiness\": \"\",\n \"nationalId\": \"\"\n }\n}" + }, + "url": { + "raw": "https://api.payping.ir/v1/Invoice/SendByTemplateSimple", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "Invoice", + "SendByTemplateSimple" + ] + } + }, + "response": [ + { + "name": "نمایش فاکتور", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"templateCode\": \"\",\n \"emailAddresses\": [\n \"\",\n \"\"\n ],\n \"addressBook\": {\n \"firstName\": \"\",\n \"lastName\": \"\",\n \"userPhotoFileId\": \"\",\n \"email\": \"\",\n \"phone\": \"\",\n \"businessName\": \"\",\n \"additionalInfo\": \"\",\n \"zipCode\": \"\",\n \"state\": \"\",\n \"city\": \"\",\n \"location\": \"\",\n \"memo\": \"\",\n \"isBusiness\": \"\",\n \"nationalId\": \"\"\n }\n}" + }, + "url": { + "raw": "https://api.payping.ir/v1/Invoice/SendByTemplateSimple", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "Invoice", + "SendByTemplateSimple" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "json", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "cookie": [], + "body": "{\n \"code\": \"\",\n \"parentCode\": \"\",\n \"paymentCode\": \"\",\n \"ccToes\": [\n {\n \"emailAddress\": \"\"\n },\n {\n \"emailAddress\": \"\"\n }\n ],\n \"billToes\": [\n {\n \"addressBook\": {\n \"code\": \"\",\n \"firstName\": \"\",\n \"lastName\": \"\",\n \"userPhotoFileAddress\": \"\",\n \"userPhotoFileId\": \"\",\n \"email\": \"\",\n \"phone\": \"\",\n \"businessName\": \"\",\n \"additionalInfo\": \"\",\n \"memo\": \"\",\n \"zipCode\": \"\",\n \"state\": \"\",\n \"city\": \"\",\n \"location\": \"\",\n \"isBusiness\": \"\",\n \"nationalId\": \"\"\n }\n },\n {\n \"addressBook\": {\n \"code\": \"\",\n \"firstName\": \"\",\n \"lastName\": \"\",\n \"userPhotoFileAddress\": \"\",\n \"userPhotoFileId\": \"\",\n \"email\": \"\",\n \"phone\": \"\",\n \"businessName\": \"\",\n \"additionalInfo\": \"\",\n \"memo\": \"\",\n \"zipCode\": \"\",\n \"state\": \"\",\n \"city\": \"\",\n \"location\": \"\",\n \"isBusiness\": \"\",\n \"nationalId\": \"\"\n }\n }\n ],\n \"status\": \"\",\n \"paidManualDescription\": \"\",\n \"saveToTemplate\": \"\",\n \"invoiceNumber\": \"\",\n \"invoiceTitle\": \"\",\n \"invoiceDateTime\": \"\",\n \"dueDate\": \"\",\n \"payedDateTime\": \"\",\n \"canceledDateTime\": \"\",\n \"subTotal\": \"\",\n \"itemsDiscountAmount\": \"\",\n \"totalDiscountAmount\": \"\",\n \"totalDiscountPercent\": \"\",\n \"totalDiscountType\": \"\",\n \"sumDiscountAmount\": \"\",\n \"totalTaxtionAmount\": \"\",\n \"shipping\": \"\",\n \"total\": \"\",\n \"notes\": \"\",\n \"termsAndConditions\": \"\",\n \"memo\": \"\",\n \"invoiceSchulder\": {\n \"repeat\": \"\",\n \"schulderType\": \"\",\n \"dueType\": \"\",\n \"endValue\": \"\",\n \"dueDateAfterHowManyDay\": \"\",\n \"invoiceSubSchulders\": [\n {\n \"dueDate\": \"\",\n \"mustBeCreateInDateTime\": \"\",\n \"deActiveDateTime\": \"\",\n \"isInvoiceCreated\": \"\",\n \"isActive\": \"\",\n \"invoiceCode\": \"\"\n },\n {\n \"dueDate\": \"\",\n \"mustBeCreateInDateTime\": \"\",\n \"deActiveDateTime\": \"\",\n \"isInvoiceCreated\": \"\",\n \"isActive\": \"\",\n \"invoiceCode\": \"\"\n }\n ]\n },\n \"invoiceItems\": [\n {\n \"code\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"quantity\": \"\",\n \"discountType\": \"\",\n \"discountPercent\": \"\",\n \"discountAmount\": \"\",\n \"tax\": \"\",\n \"taxRate\": \"\",\n \"price\": \"\",\n \"totalPrice\": \"\",\n \"amount\": \"\"\n },\n {\n \"code\": \"\",\n \"name\": \"\",\n \"description\": \"\",\n \"quantity\": \"\",\n \"discountType\": \"\",\n \"discountPercent\": \"\",\n \"discountAmount\": \"\",\n \"tax\": \"\",\n \"taxRate\": \"\",\n \"price\": \"\",\n \"totalPrice\": \"\",\n \"amount\": \"\"\n }\n ],\n \"isSendAttachmentsAfterPayment\": \"\",\n \"isSendNotesAndTermsAfterPayment\": \"\",\n \"isSendTermsAfterPayment\": \"\",\n \"attachFileIds\": [\n \"\",\n \"\"\n ],\n \"attachFileAddresses\": [\n \"\",\n \"\"\n ],\n \"qrCodeFileName\": \"\"\n}" + } + ] + } + ], + "_postman_isSubFolder": true + }, + { + "name": "Upload", + "item": [ + { + "name": "آپلود عکس پروفایل کاربری", + "request": { + "auth": { + "type": "bearer" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "" + } + ] + }, + "url": { + "raw": "https://api.payping.ir/v1/Upload/ProfilePic", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "Upload", + "ProfilePic" + ] + }, + "description": "محدودیت‌های فایل‌های ورودی:\r\n\r\nJPG, PNG, JPEG" + }, + "response": [ + { + "name": "عکس کاربر با موفقیت آپلود شد", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "" + } + ] + }, + "url": { + "raw": "https://api.payping.ir/v1/Upload/ProfilePic", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "Upload", + "ProfilePic" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "text", + "header": [ + { + "key": "Content-Type", + "value": "text/plain" + } + ], + "cookie": [], + "body": "" + } + ] + }, + { + "name": "آپلود عکس یک آیتم‌مالی", + "request": { + "auth": { + "type": "bearer" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "" + } + ] + }, + "url": { + "raw": "https://api.payping.ir/v1/Upload/Item", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "Upload", + "Item" + ] + }, + "description": "محدودیت‌های فایل‌های ورودی:\r\n\r\nJPG, PNG, JPEG" + }, + "response": [ + { + "name": "عکس آیتم‌مالی با موفقیت آپلود شد", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "" + } + ] + }, + "url": { + "raw": "https://api.payping.ir/v1/Upload/Item", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "Upload", + "Item" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "text", + "header": [ + { + "key": "Content-Type", + "value": "text/plain" + } + ], + "cookie": [], + "body": "" + } + ] + }, + { + "name": "آپلود فایل‌ ضمیمه یک فاکتور", + "request": { + "auth": { + "type": "bearer" + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "" + } + ] + }, + "url": { + "raw": "https://api.payping.ir/v1/Upload/InvoiceAttachment", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "Upload", + "InvoiceAttachment" + ] + }, + "description": "محدودیت‌های فایل‌های ورودی:\r\n\r\nمحدودیت ندارد." + }, + "response": [ + { + "name": "فایل ضمیمه فاکتور با موفقیت آپلود شد", + "originalRequest": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file", + "value": "" + } + ] + }, + "url": { + "raw": "https://api.payping.ir/v1/Upload/InvoiceAttachment", + "host": [ + "https://api.payping.ir" + ], + "path": [ + "v1", + "Upload", + "InvoiceAttachment" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "text", + "header": [ + { + "key": "Content-Type", + "value": "text/plain" + } + ], + "cookie": [], + "body": "" + } + ] + } + ], + "_postman_isSubFolder": true + } + ] + } + ], + "variable": [ + { + "id": "baseUrl", + "key": "baseUrl", + "value": "https://api.payping.ir/", + "type": "string" + } + ] +} \ No newline at end of file diff --git a/providers/payping/report.go b/providers/payping/report.go index 2f77077..61131bd 100644 --- a/providers/payping/report.go +++ b/providers/payping/report.go @@ -3,26 +3,26 @@ package payping import "context" // refrence: https://docs.payping.ir/#operation/TransactionsReport -func (p *Payping) TransactionsList(ctx context.Context, amount uint, callBackUrl, currency, description string, metaData map[string]interface{}) (*PaymentResponse, error) { - return &PaymentResponse{}, nil +func (p *Payping) TransactionsList(ctx context.Context) (interface{}, error) { + return nil, nil } // refrence: https://docs.payping.ir/#operation/TransactionsReportCount -func (p *Payping) TransactionsDetails(ctx context.Context, amount uint, callBackUrl, currency, description string, metaData map[string]interface{}) (*PaymentResponse, error) { - return &PaymentResponse{}, nil +func (p *Payping) TransactionsDetails(ctx context.Context) (interface{}, error) { + return nil, nil } // refrence: https://docs.payping.ir/#operation/WithdrawTransactionsCount -func (p *Payping) TransactionsNumber(ctx context.Context, amount uint, callBackUrl, currency, description string, metaData map[string]interface{}) (*PaymentResponse, error) { - return &PaymentResponse{}, nil +func (p *Payping) TransactionsNumber(ctx context.Context) (interface{}, error) { + return nil, nil } // refrence: https://docs.payping.ir/#operation/WithdrawTransactionsReport -func (p *Payping) SettelmentList(ctx context.Context, amount uint, callBackUrl, currency, description string, metaData map[string]interface{}) (*PaymentResponse, error) { - return &PaymentResponse{}, nil +func (p *Payping) SettelmentList(ctx context.Context) (interface{}, error) { + return nil, nil } // refrence: https://docs.payping.ir/#operation/WithdrawTransactionsCount -func (p *Payping) SettelmentListNumber(ctx context.Context, amount uint, callBackUrl, currency, description string, metaData map[string]interface{}) (*PaymentResponse, error) { - return &PaymentResponse{}, nil +func (p *Payping) SettelmentListNumber(ctx context.Context) (interface{}, error) { + return nil, nil } diff --git a/providers/payping/withdraw.go b/providers/payping/withdraw.go index 18aefeb..ab50464 100644 --- a/providers/payping/withdraw.go +++ b/providers/payping/withdraw.go @@ -2,10 +2,10 @@ package payping import "context" -func (p *Payping) SettlementRequest(ctx context.Context, amount uint, callBackUrl, currency, description string, metaData map[string]interface{}) (*PaymentResponse, error) { - return &PaymentResponse{}, nil +func (p *Payping) SettlementRequest(ctx context.Context) (interface{}, error) { + return nil, nil } -func (p *Payping) SettlementDetails(ctx context.Context, amount uint, callBackUrl, currency, description string, metaData map[string]interface{}) (*PaymentResponse, error) { - return &PaymentResponse{}, nil +func (p *Payping) SettlementDetails(ctx context.Context) (interface{}, error) { + return nil, nil }