Justap API
- API version: 1.0
- Build date: 2024-09-04T00:13:14.840Z
For more information, please visit https://www.justap.cn/docs
Building the API client library requires:
- Java 1.8+
- Maven/Gradle
To install the API client library to your local Maven repository, simply execute:
mvn clean install
To deploy it to a remote Maven repository instead, configure the settings of the repository and execute:
mvn clean deploy
Refer to the OSSRH Guide for more information.
Add this dependency to your project's POM:
<dependency>
<groupId>justap-server-sdk-java</groupId>
<artifactId>justap-server-sdk-java</artifactId>
<version>1.0.0</version>
<scope>compile</scope>
</dependency>
Add this dependency to your project's build file:
compile "justap-server-sdk-java:justap-server-sdk-java:1.0.0"
At first generate the JAR by executing:
mvn clean package
Then manually install the following JARs:
target/justap-server-sdk-java-1.0.0.jar
target/lib/*.jar
Please follow the installation instruction and execute the following Java code:
import justap.*;
import justap.auth.*;
import io.swagger.client.model.*;
import justap_sdk.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: ApiKeyAuth
ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
ApiKeyAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.setApiKeyPrefix("Token");
DefaultApi apiInstance = new DefaultApi();
V1CreateUserRequest body = new V1CreateUserRequest(); // V1CreateUserRequest |
try {
V1UserResponse result = apiInstance.businessUserServiceCreateUser(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#businessUserServiceCreateUser");
e.printStackTrace();
}
}
}
All URIs are relative to http://127.0.0.1:21011
Class | Method | HTTP request | Description |
---|---|---|---|
DefaultApi | businessUserServiceCreateUser | POST /v1/business_users | 创建 Business User 对象 |
DefaultApi | businessUserServiceDeleteUser | DELETE /v1/business_users/{id} | 删除 Business User 对象 |
DefaultApi | businessUserServiceListAllUsers | GET /v1/business_users | 查询 Business User 对象列表 |
DefaultApi | businessUserServiceRetrieveUser | GET /v1/business_users/{id} | 查询 Business User 对象 |
DefaultApi | businessUserServiceSearchUsers | GET /v1/business_users/search | 查询 Business User 对象列表 |
DefaultApi | businessUserServiceUpdateUser | PUT /v1/business_users/{user.id} | 更新 Business User 对象 |
DefaultApi | businessUserServiceUpdateUser2 | PATCH /v1/business_users/{user.id} | 更新 Business User 对象 |
DefaultApi | chargeServiceCharges | POST /transaction/v1/charges | 创建 Charge 对象 |
DefaultApi | chargeServiceCharges2 | POST /v1/charges | 创建 Charge 对象 |
DefaultApi | chargeServiceQueryCharge | GET /transaction/v1/charges/{charge_id} | 查询 Charge 对象 |
DefaultApi | chargeServiceQueryCharge2 | GET /v1/charges/{charge_id} | 查询 Charge 对象 |
DefaultApi | chargeServiceQueryCharge3 | GET /v1/charges/merchant_trade_id/{merchant_trade_id} | 查询 Charge 对象 |
DefaultApi | chargeServiceQueryChargeList | GET /transaction/v1/charges | 查询 Charge 对象列表 |
DefaultApi | chargeServiceQueryChargeList2 | GET /v1/charges | 查询 Charge 对象列表 |
DefaultApi | chargeServiceReverseCharge | POST /transaction/v1/charges/{charge_id}/reverse | 撤销 Charge 对象 |
DefaultApi | chargeServiceReverseCharge2 | POST /v1/charges/{charge_id}/reverse | 撤销 Charge 对象 |
DefaultApi | refundServiceQueryRefund | GET /transaction/v1/charges/{charge_id}/refunds/{refund_id} | 查询 Refund 对象 |
DefaultApi | refundServiceQueryRefund2 | GET /v1/refunds/{refund_id} | 查询 Refund 对象 |
DefaultApi | refundServiceQueryRefundList | GET /transaction/v1/charges/{charge_id}/refunds | 查询 Refund 对象列表 |
DefaultApi | refundServiceQueryRefundList2 | GET /v1/refunds | 查询 Refund 对象列表 |
DefaultApi | refundServiceRefunds | POST /transaction/v1/refunds | 创建 Refund 对象 |
DefaultApi | refundServiceRefunds2 | POST /v1/refunds | 创建 Refund 对象 |
DefaultApi | royaltyServiceCreateRoyalty | POST /v1/royalties | 创建 Royalty 对象 |
DefaultApi | royaltyServiceListAllRoyalties | GET /v1/royalties | 查询 Royalty 对象列表 |
DefaultApi | royaltyServiceRetrieveRoyalty | GET /v1/royalties/{id} | 查询 Royalty 对象 |
DefaultApi | settlementServiceCreateSettlementAccount | POST /v1/settlement_accounts | 创建结算账户 |
DefaultApi | settlementServiceDeleteSettlementAccount | DELETE /v1/settlement_accounts/{id} | 删除结算账户 |
DefaultApi | settlementServiceListAllSettlementAccounts | GET /v1/settlement_accounts | 查询结算账户列表 |
DefaultApi | settlementServiceRetrieveSettlementAccount | GET /v1/settlement_accounts/{id} | 查询结算账户 |
DefaultApi | settlementServiceSearchSettlementAccounts | GET /v1/settlement_accounts/search | 查询结算账户列表 |
DefaultApi | settlementServiceUpdateSettlementAccount | PUT /v1/settlement_accounts/{settlementAccount.id} | 更新结算账户 |
DefaultApi | settlementServiceUpdateSettlementAccount2 | PATCH /v1/settlement_accounts/{settlementAccount.id} | 更新结算账户 |
CheckoutServiceApi | checkoutServiceCreateUnionQrCheckout | POST /v1/checkout/union_qr | 通过聚合收款码创建订单 |
CustomerServiceApi | customerServiceCreateCustomer | POST /v1/customers | |
CustomerServiceApi | customerServiceDeleteCustomer | DELETE /v1/customers/{id} | |
CustomerServiceApi | customerServiceListAllCustomers | GET /v1/customers | |
CustomerServiceApi | customerServiceRetrieveCustomer | GET /v1/customers/{id} | |
CustomerServiceApi | customerServiceSearchCustomers | GET /v1/customers/search | |
CustomerServiceApi | customerServiceUpdateCustomer | POST /v1/customers/{id} |
- ChargeRoutingRequestChargeMethod
- CreateRoyaltyRequestRoyaltyMode
- CreateRoyaltyRequestRoyaltyReceiver
- ExtraAlipayInvoiceInfoKeyInfo
- ExtraAlipayJSAPIPayer
- ExtraAlipayPageAlipayDirectPayForm
- ExtraAlipaySettleInfoSettleDetailInfos
- ExtraUnionPayCardlessQuickPayCardType
- ExtraWechatpayDetailGoodsDetail
- ExtraWechatpaySceneInfoH5Info
- ExtraWechatpaySceneInfoStoreInfo
- GooglerpcStatus
- OpenApiRoyaltyDetailInfoPojoTradeFundBillItem
- ProtobufAny
- RefundExtraAlipayOpenApiRoyaltyDetailInfoPojo
- RefundExtraWechatPayAccount
- RefundExtraWechatPayGoodsDetailItem
- RefundRoutingRequestRefundMethod
- RoyaltyReceiverRoyaltyFeeMode
- RoyaltySettlementRoyaltySettlementStatus
- RoyaltySettlementTransactionRoyaltyTransactionStatus
- SettlementAccountRecipientAccountType
- SettlementAccountRecipientAlipayChannelRecipient
- SettlementAccountRecipientBalanceChannelRecipient
- SettlementAccountRecipientBankChannelRecipient
- SettlementAccountRecipientRecipientType
- SettlementAccountRecipientWechatpayChannelRecipient
- SettlementAccountRecipientYsepayMerchantRecipient
- Tradev1Channel
- Tradev1RoyaltyMethod
- V1AcquirerCloseTransactionResponse
- V1AcquirerCreateRefundResponse
- V1AcquirerCreateRoyaltyResponse
- V1AcquirerCreateTransactionResponse
- V1AcquirerPaymentNotifyResponse
- V1AcquirerQueryRefundResponse
- V1AcquirerQueryRoyaltyResponse
- V1AcquirerQueryTransactionResponse
- V1AcquirerRefundNotifyResponse
- V1AcquirerRoyaltyNotifyResponse
- V1AlipayCallbackResponse
- V1AlipayNotifyResponse
- V1BusinessUser
- V1CallbackRoutingResponse
- V1Charge
- V1ChargeExtra
- V1ChargeListResponse
- V1ChargeResponse
- V1ChargeRoutingResponse
- V1CreateChargeRequest
- V1CreateChargeRequestExtra
- V1CreateCustomerRequest
- V1CreateRefundRequest
- V1CreateRoyaltyRequest
- V1CreateSettlementAccountRequest
- V1CreateUserRequest
- V1Customer
- V1CustomerListResponse
- V1CustomerResponse
- V1DeleteCustomerResponse
- V1DeleteProductResponse
- V1DeleteSettlementAccountResponse
- V1DeleteUserResponse
- V1ExtraAlipayApp
- V1ExtraAlipayBusinessParams
- V1ExtraAlipayExtUserInfo
- V1ExtraAlipayExtendParams
- V1ExtraAlipayFace
- V1ExtraAlipayFundBillList
- V1ExtraAlipayGoodsDetail
- V1ExtraAlipayInvoiceInfo
- V1ExtraAlipayJSAPI
- V1ExtraAlipayLite
- V1ExtraAlipayLogisticsDetail
- V1ExtraAlipayPage
- V1ExtraAlipayPayParams
- V1ExtraAlipayQr
- V1ExtraAlipayReceiverAddressInfo
- V1ExtraAlipayScan
- V1ExtraAlipaySettleInfo
- V1ExtraAlipaySubMerchant
- V1ExtraAlipayVoucherDetailList
- V1ExtraAlipayWap
- V1ExtraUnionPayCardlessQuickPay
- V1ExtraWechatpayApp
- V1ExtraWechatpayAppConfig
- V1ExtraWechatpayAppletConfig
- V1ExtraWechatpayDetail
- V1ExtraWechatpayH5
- V1ExtraWechatpayJsapi
- V1ExtraWechatpayJsapiConfig
- V1ExtraWechatpayLite
- V1ExtraWechatpayNative
- V1ExtraWechatpayPayer
- V1ExtraWechatpayScan
- V1ExtraWechatpaySceneInfo
- V1ExtraWechatpaySettleInfo
- V1FinishRoyaltyResponse
- V1Gender
- V1ListAllCustomersRequestCreated
- V1ListAllRoyaltiesRequestCreated
- V1ListAllRoyaltiesResponse
- V1ListAllSettlementAccountsRequestCreated
- V1ListAllUsersRequestCreated
- V1NotifyRoutingResponse
- V1ProductListResponse
- V1ProductResponse
- V1QueryChargeListRequestCreated
- V1Refund
- V1RefundExtra
- V1RefundExtraAlipay
- V1RefundExtraWechatPay
- V1RefundListResponse
- V1RefundResponse
- V1RefundRoutingResponse
- V1Royalty
- V1RoyaltyResponse
- V1RoyaltyRoutingRequestRoyaltyMethod
- V1RoyaltyRoutingResponse
- V1RoyaltySettlement
- V1RoyaltySettlementListResponse
- V1RoyaltySettlementResponse
- V1RoyaltySettlementSource
- V1RoyaltySettlementSourceType
- V1RoyaltySettlementTransaction
- V1RoyaltySettlementTransactionListResponse
- V1RoyaltySettlementTransactionResponse
- V1RoyaltyStatus
- V1SearchCustomersRequestCreated
- V1SearchRoyaltiesResponse
- V1SearchUsersRequestCreated
- V1ServiceError
- V1SettlementAccount
- V1SettlementAccountChannel
- V1SettlementAccountListResponse
- V1SettlementAccountRecipient
- V1SettlementAccountResponse
- V1TransferRoutingResponse
- V1UnionQrRequest
- V1UpdateAndPatchRequestBody
- V1User
- V1UserListResponse
- V1UserResponse
- V1WechatpayCallbackResponse
- V1WechatpayNotifyResponse
Authentication schemes defined for the API:
- Type: API key
- API key parameter name: X-JUSTAP-API-KEY
- Location: HTTP header
It's recommended to create an instance of ApiClient
per thread in a multithreaded environment to avoid any potential issues.