client.marketplace.getMarketplace() -> MarketplaceObject
-
-
-
Settings are changed in the dashboard, separately for test and live.
-
-
-
client.marketplace().getMarketplace();
-
-
client.sellers.listSellers() -> SellerList
-
-
-
client.sellers().listSellers( ListSellersRequest .builder() .build() );
-
-
-
limit:
Optional<Double>
-
startingAfter:
Optional<String>— Thenext_cursorof the previous page.
-
externalId:
Optional<String>— Find the seller with this external id.
-
status:
Optional<ListSellersRequestStatus>
-
-
client.sellers.createSeller(request) -> SellerObject
-
-
-
client.sellers().createSeller( CreatePartyDto .builder() .externalId("external_id") .build() );
-
-
-
request:
CreatePartyDto
-
-
client.sellers.getSeller(id) -> SellerObject
-
-
-
client.sellers().getSeller( "id", GetSellerRequest .builder() .build() );
-
-
-
id:
String
-
-
client.sellers.eraseSeller(id) -> SellerObject
-
-
-
Removes the name, external id, metadata, storefront, and review text, and takes the listings down. Orders and reputation stay, without personal data.
-
-
-
client.sellers().eraseSeller( "id", EraseSellerRequest .builder() .build() );
-
-
-
id:
String
-
-
client.sellers.updateSeller(id, request) -> SellerObject
-
-
-
client.sellers().updateSeller( "id", UpdateSellerRequest .builder() .body( UpdatePartyDto .builder() .build() ) .build() );
-
-
-
id:
String
-
request:
UpdatePartyDto
-
-
client.sellers.putStorefront(id, request) -> StorefrontObject
-
-
-
client.sellers().putStorefront( "id", StorefrontDto .builder() .name("name") .slug("jane-templates") .build() );
-
-
-
id:
String
-
name:
String
-
slug:
String— Lowercase letters, digits, and hyphens. Unique per marketplace.
-
description:
Optional<String>
-
metadata:
Optional<Map<String, String>>
-
-
client.sellers.createOnboardingLink(id, request) -> OnboardingLinkObject
-
-
-
The first link creates the seller's connected account on your Stripe account: Express, with Stripe collecting what the law requires, your platform paying Stripe's fees and bearing losses, and only transfers requested. Send the seller to the link; their payouts status follows as Stripe reports it.
-
-
-
client.sellers().createOnboardingLink( "id", OnboardingLinkDto .builder() .returnUrl("return_url") .refreshUrl("refresh_url") .build() );
-
-
-
id:
String
-
returnUrl:
String— Where Stripe sends the seller when they finish or leave onboarding.
-
refreshUrl:
String— Where Stripe sends the seller if the link expired. Create a new link there.
-
country:
Optional<String>— The seller's country, two letters. Used only when the seller's Stripe account is created, on the first link. Defaults to your Stripe account's country.
-
-
client.sellers.getSellerProfile(id) -> SellerProfileObject
-
-
-
Callable with a publishable key. Shows only what a buyer may see.
-
-
-
client.sellers().getSellerProfile( "id", GetSellerProfileRequest .builder() .build() );
-
-
-
id:
String
-
-
client.buyers.listBuyers() -> BuyerList
-
-
-
client.buyers().listBuyers( ListBuyersRequest .builder() .build() );
-
-
-
limit:
Optional<Double>
-
startingAfter:
Optional<String>— Thenext_cursorof the previous page.
-
externalId:
Optional<String>— Find the buyer with this external id.
-
-
client.buyers.createBuyer(request) -> BuyerObject
-
-
-
client.buyers().createBuyer( CreatePartyDto .builder() .externalId("external_id") .build() );
-
-
-
request:
CreatePartyDto
-
-
client.buyers.getBuyer(id) -> BuyerObject
-
-
-
client.buyers().getBuyer( "id", GetBuyerRequest .builder() .build() );
-
-
-
id:
String
-
-
client.buyers.eraseBuyer(id) -> BuyerObject
-
-
-
client.buyers().eraseBuyer( "id", EraseBuyerRequest .builder() .build() );
-
-
-
id:
String
-
-
client.buyers.updateBuyer(id, request) -> BuyerObject
-
-
-
client.buyers().updateBuyer( "id", UpdateBuyerRequest .builder() .body( UpdatePartyDto .builder() .build() ) .build() );
-
-
-
id:
String
-
request:
UpdatePartyDto
-
-
client.categories.listCategories() -> CategoryList
-
-
-
client.categories().listCategories( ListCategoriesRequest .builder() .build() );
-
-
-
limit:
Optional<Double>
-
startingAfter:
Optional<String>— Thenext_cursorof the previous page.
-
-
client.categories.createCategory(request) -> CategoryObject
-
-
-
client.categories().createCategory( CreateCategoryDto .builder() .key("ui-kits") .name("name") .build() );
-
-
-
key:
String— Your key for the category. Unique per marketplace.
-
name:
String
-
description:
Optional<String>
-
parent:
Optional<String>— Another category of this marketplace.
-
attributeSchema:
Optional<AttributeSchemaObject>
-
fee:
Optional<CategoryFeeDto>— Overrides the marketplace's platform fee for listings in this category. Null uses the marketplace fee.
-
prohibited:
Optional<Boolean>— Listings in a prohibited category cannot be published (section 9.4).
-
-
client.categories.getCategory(id) -> CategoryObject
-
-
-
client.categories().getCategory( "id", GetCategoryRequest .builder() .build() );
-
-
-
id:
String
-
-
client.categories.updateCategory(id, request) -> CategoryObject
-
-
-
client.categories().updateCategory( "id", UpdateCategoryDto .builder() .build() );
-
-
-
id:
String
-
name:
Optional<String>
-
description:
Optional<String>
-
parent:
Optional<String>
-
fee:
Optional<CategoryFeeDto>
-
prohibited:
Optional<Boolean>— Listings in a prohibited category cannot be published. Listings already published stay until moderated.
-
-
client.categories.getAttributeSchema(id) -> AttributeSchemaObject
-
-
-
client.categories().getAttributeSchema( "id", GetAttributeSchemaRequest .builder() .build() );
-
-
-
id:
String
-
-
client.categories.putAttributeSchema(id, request) -> AttributeSchemaObject
-
-
-
Refused if a listing already in the category would no longer fit.
-
-
-
client.categories().putAttributeSchema( "id", PutAttributeSchemaRequest .builder() .body( AttributeSchemaObject .builder() .attributes( Arrays.asList( AttributeDefinitionObject .builder() .key("format") .type(AttributeDefinitionObjectType.STRING) .build() ) ) .build() ) .build() );
-
-
-
id:
String
-
request:
AttributeSchemaObject
-
-
client.listings.listListings() -> ListingList
-
-
-
With a publishable key, only published listings are listed.
-
-
-
client.listings().listListings( ListListingsRequest .builder() .build() );
-
-
-
limit:
Optional<Double>
-
startingAfter:
Optional<String>— Thenext_cursorof the previous page.
-
seller:
Optional<String>
-
category:
Optional<String>
-
status:
Optional<ListListingsRequestStatus>
-
-
client.listings.createListing(request) -> ListingObject
-
-
-
client.listings().createListing( CreateListingDto .builder() .seller("sel_034XtPDs7UJ0TXzTsdaHZa") .title("title") .price( MoneyDto .builder() .amount(4900.0) .currency("USD") .build() ) .build() );
-
-
-
request:
CreateListingDto
-
-
client.listings.createListings(request) -> BulkListingsObject
-
-
-
client.listings().createListings( BulkCreateListingsDto .builder() .listings( Arrays.asList( CreateListingDto .builder() .seller("sel_034XtPDs7UJ0TXzTsdaHZa") .title("title") .price( MoneyDto .builder() .amount(4900.0) .currency("USD") .build() ) .build() ) ) .build() );
-
-
-
listings:
List<CreateListingDto>— All are created, or none.
-
-
client.listings.getListing(id) -> ListingObject
-
-
-
With a publishable key, only a published listing can be retrieved.
-
-
-
client.listings().getListing( "id", GetListingRequest .builder() .build() );
-
-
-
id:
String
-
-
client.listings.updateListing(id, request) -> ListingObject
-
-
-
client.listings().updateListing( "id", UpdateListingDto .builder() .build() );
-
-
-
id:
String
-
category:
Optional<String>
-
title:
Optional<String>
-
description:
Optional<String>
-
price:
Optional<MoneyDto>
-
quantity:
Optional<Double>— The total. Cannot go below what open orders have reserved.
-
attributes:
Optional<Map<String, Object>>
-
metadata:
Optional<Map<String, String>>
-
expiresAt:
Optional<OffsetDateTime>
-
-
client.listings.publishListing(id) -> ListingObject
-
-
-
Needs an active seller, verified when seller verification is on, and a category that is not prohibited.
-
-
-
client.listings().publishListing( "id", PublishListingRequest .builder() .build() );
-
-
-
id:
String
-
-
client.listings.unpublishListing(id) -> ListingObject
-
-
-
client.listings().unpublishListing( "id", UnpublishListingRequest .builder() .build() );
-
-
-
id:
String
-
-
client.listings.removeListing(id, request) -> ListingObject
-
-
-
client.listings().removeListing( "id", RemoveListingDto .builder() .reason("reason") .build() );
-
-
-
id:
String
-
reason:
String— Recorded with the removal.
-
-
client.listings.listMedia(id) -> MediaList
-
-
-
client.listings().listMedia( "id", ListMediaRequest .builder() .build() );
-
-
-
id:
String
-
-
client.listings.createMedia(id, request) -> MediaUploadObject
-
-
-
Returns a signed URL, valid for 10 minutes. PUT the file there, then complete the upload. The file is stored under a path that begins with the marketplace id.
-
-
-
client.listings().createMedia( "id", CreateMediaDto .builder() .contentType(CreateMediaDtoContentType.IMAGE_JPEG) .sizeBytes(1.1) .build() );
-
-
-
id:
String
-
contentType:
CreateMediaDtoContentType
-
sizeBytes:
Double— The exact size of the file, in bytes. At most 10 MB.
-
position:
Optional<Double>
-
-
client.listings.completeMedia(id) -> MediaObject
-
-
-
Checks the stored file against the declared type and size.
-
-
-
client.listings().completeMedia( "id", CompleteMediaRequest .builder() .build() );
-
-
-
id:
String
-
-
client.listings.deleteMedia(id) -> MediaObject
-
-
-
client.listings().deleteMedia( "id", DeleteMediaRequest .builder() .build() );
-
-
-
id:
String
-
-
client.search.searchListings() -> ListingList
-
-
-
Full text over title and description, with filters and sorting. Only published listings with something available are returned. Callable with a publishable key.
-
-
-
client.search().searchListings( SearchListingsRequest .builder() .build() );
-
-
-
q:
Optional<String>— Full text over title and description.
-
category:
Optional<String>
-
seller:
Optional<String>
-
minPrice:
Optional<Double>— Minor units.
-
maxPrice:
Optional<Double>— Minor units.
-
attributes:
Optional<Map<String, Object>>— Attribute filters, as attributes[key]=value for equality, or attributes[key][gte]=n and attributes[key][lte]=n for numbers. Numeric filters need a category.
-
sort:
Optional<SearchListingsSearchRequestSort>— Relevance needs q. Default newest.
-
limit:
Optional<Double>
-
cursor:
Optional<String>— The next_cursor of the previous page.
-
-
client.orders.listOrders() -> OrderList
-
-
-
client.orders().listOrders( ListOrdersRequest .builder() .build() );
-
-
-
limit:
Optional<Double>
-
startingAfter:
Optional<String>— Thenext_cursorof the previous page.
-
buyer:
Optional<String>
-
seller:
Optional<String>
-
listing:
Optional<String>
-
state:
Optional<ListOrdersRequestState>
-
-
client.orders.createOrder(request) -> OrderObject
-
-
-
The buyer commits to buy. Quantity is reserved at once. With payments off the order is committed; with payments on it awaits payment.
-
-
-
client.orders().createOrder( CreateOrderDto .builder() .listing("lst_034XtPDs7UJ0TXzTsdaHZa") .buyer("buy_034XtPDs7UJ0TXzTsdaHZa") .build() );
-
-
-
listing:
String
-
buyer:
String— The buyer placing the order. The actor for this transition.
-
quantity:
Optional<Double>
-
checkout:
Optional<CheckoutUrlsDto>— Payments on only. With these, the order's payment includes a Stripe-hosted checkout URL; without them, a client secret for Stripe Elements on your own page.
-
metadata:
Optional<Map<String, String>>
-
-
client.orders.getOrder(id) -> OrderObject
-
-
-
client.orders().getOrder( "id", GetOrderRequest .builder() .build() );
-
-
-
id:
String
-
-
client.orders.listOrderEvents(id) -> OrderEventList
-
-
-
client.orders().listOrderEvents( "id", ListOrderEventsRequest .builder() .build() );
-
-
-
id:
String
-
-
client.orders.claimOrder(id, request) -> OrderObject
-
-
-
Called from your server.
actorsays which end user is acting; we check they are a party to the order and may make this transition.
-
-
-
client.orders().claimOrder( "id", ClaimOrderRequest .builder() .body( ActorDto .builder() .actor("buy_034XtPDs7UJ0TXzTsdaHZa") .build() ) .build() );
-
-
-
id:
String
-
request:
ActorDto
-
-
client.orders.confirmOrder(id, request) -> OrderObject
-
-
-
Called from your server.
actorsays which end user is acting; we check they are a party to the order and may make this transition.
-
-
-
client.orders().confirmOrder( "id", ConfirmOrderRequest .builder() .body( ActorDto .builder() .actor("buy_034XtPDs7UJ0TXzTsdaHZa") .build() ) .build() );
-
-
-
id:
String
-
request:
ActorDto
-
-
client.orders.backOutOfOrder(id, request) -> OrderObject
-
-
-
Called from your server.
actorsays which end user is acting; we check they are a party to the order and may make this transition. Writes a backed_out reputation event against the actor.
-
-
-
client.orders().backOutOfOrder( "id", BackOutOfOrderRequest .builder() .body( ActorDto .builder() .actor("buy_034XtPDs7UJ0TXzTsdaHZa") .build() ) .build() );
-
-
-
id:
String
-
request:
ActorDto
-
-
client.orders.proposeCancel(id, request) -> OrderObject
-
-
-
Called from your server.
actorsays which end user is acting; we check they are a party to the order and may make this transition. The other party can accept within the agreement window. A declined or lapsed proposal changes nothing.
-
-
-
client.orders().proposeCancel( "id", ProposeCancelRequest .builder() .body( ActorDto .builder() .actor("buy_034XtPDs7UJ0TXzTsdaHZa") .build() ) .build() );
-
-
-
id:
String
-
request:
ActorDto
-
-
client.orders.acceptCancel(id, request) -> OrderObject
-
-
-
Called from your server.
actorsays which end user is acting; we check they are a party to the order and may make this transition.
-
-
-
client.orders().acceptCancel( "id", AcceptCancelRequest .builder() .body( ActorDto .builder() .actor("buy_034XtPDs7UJ0TXzTsdaHZa") .build() ) .build() );
-
-
-
id:
String
-
request:
ActorDto
-
-
client.orders.declineCancel(id, request) -> OrderObject
-
-
-
Called from your server.
actorsays which end user is acting; we check they are a party to the order and may make this transition.
-
-
-
client.orders().declineCancel( "id", DeclineCancelRequest .builder() .body( ActorDto .builder() .actor("buy_034XtPDs7UJ0TXzTsdaHZa") .build() ) .build() );
-
-
-
id:
String
-
request:
ActorDto
-
-
client.orders.listOrderReviews(id) -> ReviewList
-
-
-
client.orders().listOrderReviews( "id", ListOrderReviewsRequest .builder() .build() );
-
-
-
id:
String
-
-
client.orders.createReview(id, request) -> ReviewObject
-
-
-
Called from your server.
actorsays which end user is acting; we check they are a party to the order and may make this transition. Only on a completed order, inside the review window, once per party. Hidden until both have reviewed or the window closes.
-
-
-
client.orders().createReview( "id", CreateReviewDto .builder() .actor("buy_034XtPDs7UJ0TXzTsdaHZa") .rating(1.1) .build() );
-
-
-
id:
String
-
actor:
String— The buyer id or seller id of the end user doing this. We check they are a party to the order and may make this transition.
-
rating:
Double
-
body:
Optional<String>
-
-
client.reviews.listReviews() -> ReviewList
-
-
-
client.reviews().listReviews( ListReviewsRequest .builder() .subject("subject") .build() );
-
-
-
limit:
Optional<Double>
-
startingAfter:
Optional<String>— Thenext_cursorof the previous page.
-
subject:
String— The buyer or seller the reviews are about.
-
-
client.reviews.getReview(id) -> ReviewObject
-
-
-
client.reviews().getReview( "id", GetReviewRequest .builder() .build() );
-
-
-
id:
String
-
-
client.reputation.listReputationEvents() -> ReputationEventList
-
-
-
client.reputation().listReputationEvents( ListReputationEventsRequest .builder() .party("party") .build() );
-
-
-
limit:
Optional<Double>
-
startingAfter:
Optional<String>— Thenext_cursorof the previous page.
-
party:
String— The buyer or seller whose events to list.
-
-
client.reputation.voidReputationEvent(id, request) -> ReputationEventObject
-
-
-
For the customer's team. Writes a second event pointing at the first. The voided event stops counting. Nothing is deleted.
-
-
-
client.reputation().voidReputationEvent( "id", VoidDto .builder() .reason("reason") .build() );
-
-
-
id:
String
-
reason:
String— Why the event is voided. Recorded on the voiding event.
-
-
client.payments.listPayments() -> PaymentList
-
-
-
client.payments().listPayments( ListPaymentsRequest .builder() .build() );
-
-
-
limit:
Optional<Double>
-
startingAfter:
Optional<String>— Thenext_cursorof the previous page.
-
order:
Optional<String>— Only the payment for this order.
-
status:
Optional<ListPaymentsRequestStatus>
-
-
client.payments.getPayment(id) -> PaymentObject
-
-
-
client.payments().getPayment( "id", GetPaymentRequest .builder() .build() );
-
-
-
id:
String
-
-
client.payments.updatePayment(id, request) -> PaymentObject
-
-
-
client.payments().updatePayment( "id", UpdatePaymentRequest .builder() .body( UpdateMetadataDto .builder() .metadata( new HashMap<String, String>() {{ put("key", "value"); }} ) .build() ) .build() );
-
-
-
id:
String
-
request:
UpdateMetadataDto
-
-
client.payments.retryPaymentRelease(id) -> PaymentObject
-
-
-
For a release that failed, for example because the seller could not yet receive transfers. A release is also tried again by itself when the seller becomes able to receive payouts.
-
-
-
client.payments().retryPaymentRelease( "id", RetryPaymentReleaseRequest .builder() .build() );
-
-
-
id:
String
-
-
client.payments.listRefunds() -> RefundList
-
-
-
client.payments().listRefunds( ListRefundsRequest .builder() .build() );
-
-
-
limit:
Optional<Double>
-
startingAfter:
Optional<String>— Thenext_cursorof the previous page.
-
payment:
Optional<String>
-
order:
Optional<String>
-
-
client.payments.createRefund(request) -> RefundObject
-
-
-
Recorded at once with status
pending, then made at Stripe. If the seller's share was already released, the transfer is reversed in the same proportion, so your fee is given back in proportion too.
-
-
-
client.payments().createRefund( CreateRefundDto .builder() .build() );
-
-
-
payment:
Optional<String>— The payment to refund. Give this ororder.
-
order:
Optional<String>— The order whose payment to refund. Give this orpayment.
-
amount:
Optional<Double>— Minor units. Defaults to everything not yet refunded.
-
reason:
Optional<CreateRefundDtoReason>
-
metadata:
Optional<Map<String, String>>
-
-
client.payments.getRefund(id) -> RefundObject
-
-
-
client.payments().getRefund( "id", GetRefundRequest .builder() .build() );
-
-
-
id:
String
-
-
client.payments.updateRefund(id, request) -> RefundObject
-
-
-
client.payments().updateRefund( "id", UpdateRefundRequest .builder() .body( UpdateMetadataDto .builder() .metadata( new HashMap<String, String>() {{ put("key", "value"); }} ) .build() ) .build() );
-
-
-
id:
String
-
request:
UpdateMetadataDto
-
-
client.trust.createVerification(id, request) -> VerificationObject
-
-
-
Creates a Stripe Identity session on your Stripe account and returns its page, once. Only the outcome and the session id are kept; no document image or document data. When seller verification is on, a seller can publish only once verified.
-
-
-
client.trust().createVerification( "id", CreateVerificationDto .builder() .build() );
-
-
-
id:
String
-
returnUrl:
Optional<String>— Where Stripe sends the seller after the verification page.
-
-
client.trust.listVerifications() -> VerificationList
-
-
-
client.trust().listVerifications( ListVerificationsRequest .builder() .build() );
-
-
-
limit:
Optional<Double>
-
startingAfter:
Optional<String>— Thenext_cursorof the previous page.
-
seller:
Optional<String>
-
-
client.trust.getVerification(id) -> VerificationObject
-
-
-
client.trust().getVerification( "id", GetVerificationRequest .builder() .build() );
-
-
-
id:
String
-
-
client.trust.cancelVerification(id) -> VerificationObject
-
-
-
client.trust().cancelVerification( "id", CancelVerificationRequest .builder() .build() );
-
-
-
id:
String
-
-
client.trust.listDisputes() -> DisputeList
-
-
-
Filter by
stagefor a queue.
-
-
-
client.trust().listDisputes( ListDisputesRequest .builder() .build() );
-
-
-
limit:
Optional<Double>
-
startingAfter:
Optional<String>— Thenext_cursorof the previous page.
-
stage:
Optional<ListDisputesRequestStage>
-
order:
Optional<String>
-
-
client.trust.getDispute(id) -> DisputeObject
-
-
-
client.trust().getDispute( "id", GetDisputeRequest .builder() .build() );
-
-
-
id:
String
-
-
client.trust.listDisputeEvidence(id) -> DisputeEvidenceList
-
-
-
client.trust().listDisputeEvidence( "id", ListDisputeEvidenceRequest .builder() .build() );
-
-
-
id:
String
-
-
client.trust.addDisputeEvidence(id, request) -> DisputeEvidenceObject
-
-
-
Only while the dispute is in its evidence stage.
-
-
-
client.trust().addDisputeEvidence( "id", AddEvidenceDto .builder() .actor("actor") .body("body") .build() );
-
-
-
id:
String
-
actor:
String— The buyer or seller giving evidence.
-
body:
String
-
links:
Optional<List<String>>— Links to files the party provided, such as photos you store. HTTPS only.
-
-
client.trust.closeDisputeEvidence(id) -> DisputeObject
-
-
-
client.trust().closeDisputeEvidence( "id", CloseDisputeEvidenceRequest .builder() .build() );
-
-
-
id:
String
-
-
client.trust.decideDispute(id, request) -> DisputeObject
-
-
-
Your team's decision: who it went against, in writing, and with payments on, how much goes back to the buyer. On a claimed order, deciding against the party who disputed upholds the claim and completes the order; deciding against the claimant cancels it.
-
-
-
client.trust().decideDispute( "id", DecideDisputeDto .builder() .against(DecideDisputeDtoAgainst.BUYER) .note("note") .build() );
-
-
-
id:
String
-
against:
DecideDisputeDtoAgainst— Who the decision went against. They get a dispute_lost reputation event; the other party gets dispute_won.
-
note:
String— The written decision, kept with the dispute.
-
refundAmount:
Optional<Double>— Payments on only. Minor units to refund to the buyer; the rest goes to the seller. Defaults: a claimed order whose claim is upheld refunds nothing; one whose claim is rejected refunds everything; a dispute on a completed order refunds nothing.
-
decidedBy:
Optional<String>— Who on your team decided, for the record. Up to 200 characters.
-
-
client.trust.openDispute(id, request) -> DisputeObject
-
-
-
On a claimed order, by the party who did not claim: the order becomes disputed. On a completed order, by either party inside the dispute window: the order stays completed.
-
-
-
client.trust().openDispute( "id", OpenDisputeDto .builder() .actor("buy_034XtPDs7UJ0TXzTsdaHZa") .reason("reason") .build() );
-
-
-
id:
String
-
actor:
String— The buyer or seller opening the dispute.
-
reason:
String— What went wrong, in their words.
-
metadata:
Optional<Map<String, String>>
-
-
client.moderation.listFlags() -> FlagList
-
-
-
client.moderation().listFlags( ListFlagsRequest .builder() .build() );
-
-
-
limit:
Optional<Double>
-
startingAfter:
Optional<String>— Thenext_cursorof the previous page.
-
status:
Optional<ListFlagsRequestStatus>
-
target:
Optional<String>— Only flags on this listing, seller, or review.
-
-
client.moderation.createFlag(request) -> FlagObject
-
-
-
On behalf of the end user who reported it.
-
-
-
client.moderation().createFlag( CreateFlagDto .builder() .target("lst_034XtPDs7UJ0TXzTsdaHZa") .reporter("buy_034XtPDs7UJ0TXzTsdaHZa") .reason(CreateFlagDtoReason.PROHIBITED_ITEM) .build() );
-
-
-
target:
String— A listing, seller, or review id.
-
reporter:
String— The end user reporting it: a buyer id or a seller id.
-
reason:
CreateFlagDtoReason
-
note:
Optional<String>— The reporter's own words.
-
-
client.moderation.getFlag(id) -> FlagObject
-
-
-
client.moderation().getFlag( "id", GetFlagRequest .builder() .build() );
-
-
-
id:
String
-
-
client.moderation.getModerationQueue() -> ModerationQueueObject
-
-
-
client.moderation().getModerationQueue( GetModerationQueueRequest .builder() .build() );
-
-
-
targetType:
Optional<GetModerationQueueRequestTargetType>
-
-
client.moderation.listModerationActions() -> ModerationActionList
-
-
-
client.moderation().listModerationActions( ListModerationActionsRequest .builder() .build() );
-
-
-
limit:
Optional<Double>
-
startingAfter:
Optional<String>— Thenext_cursorof the previous page.
-
target:
Optional<String>
-
-
client.moderation.createModerationAction(request) -> ModerationActionObject
-
-
-
Resolves the target's open flags and logs who acted and why.
-
-
-
client.moderation().createModerationAction( CreateModerationActionDto .builder() .target("target") .action(CreateModerationActionDtoAction.DISMISS) .reason("reason") .actor("actor") .build() );
-
-
-
target:
String— The listing, seller, or review acted on.
-
action:
CreateModerationActionDtoAction—dismisscloses the open flags and changes nothing else.remove_contentremoves a listing or a review; a removed review stops counting toward reputation.suspend_sellersuspends the seller, or the seller of a listing, or a seller who wrote a review: they cannot publish or take orders, and their listings leave search.reinstate_sellerlifts a suspension.
-
reason:
String— Why. Kept with the action.
-
actor:
String— Who on your team took the action, for the log.
-
-
client.webhooks.listWebhookEndpoints() -> WebhookEndpointList
-
-
-
client.webhooks().listWebhookEndpoints( ListWebhookEndpointsRequest .builder() .build() );
-
-
-
limit:
Optional<Double>
-
startingAfter:
Optional<String>— Thenext_cursorof the previous page.
-
-
client.webhooks.createWebhookEndpoint(request) -> WebhookEndpointObject
-
-
-
Returns the signing secret, once. Every delivery carries
MarketSDK-Signature: t=<time>,v1=<HMAC-SHA256 of "<time>.<body>">.
-
-
-
client.webhooks().createWebhookEndpoint( CreateWebhookEndpointDto .builder() .url("https://shop.example/marketsdk/webhooks") .enabledEvents( Arrays.asList(CreateWebhookEndpointDtoEnabledEventsItem.ALL) ) .build() );
-
-
-
url:
String— An HTTPS URL on the public internet.
-
enabledEvents:
List<CreateWebhookEndpointDtoEnabledEventsItem>— Event types to send, or*for all.
-
description:
Optional<String>
-
metadata:
Optional<Map<String, String>>
-
-
client.webhooks.getWebhookEndpoint(id) -> WebhookEndpointObject
-
-
-
client.webhooks().getWebhookEndpoint( "id", GetWebhookEndpointRequest .builder() .build() );
-
-
-
id:
String
-
-
client.webhooks.deleteWebhookEndpoint(id) -> DeletedWebhookEndpointObject
-
-
-
client.webhooks().deleteWebhookEndpoint( "id", DeleteWebhookEndpointRequest .builder() .build() );
-
-
-
id:
String
-
-
client.webhooks.updateWebhookEndpoint(id, request) -> WebhookEndpointObject
-
-
-
client.webhooks().updateWebhookEndpoint( "id", UpdateWebhookEndpointDto .builder() .build() );
-
-
-
id:
String
-
url:
Optional<String>
-
enabledEvents:
Optional<List<UpdateWebhookEndpointDtoEnabledEventsItem>>
-
description:
Optional<String>
-
status:
Optional<UpdateWebhookEndpointDtoStatus>— Turn the endpoint off, or back on after it was turned off.
-
metadata:
Optional<Map<String, String>>
-
-
client.webhooks.rotateWebhookSecret(id) -> WebhookEndpointObject
-
-
-
Returns the new secret, once. The old one stops at once.
-
-
-
client.webhooks().rotateWebhookSecret( "id", RotateWebhookSecretRequest .builder() .build() );
-
-
-
id:
String
-
-
client.webhooks.listWebhookDeliveries() -> WebhookDeliveryList
-
-
-
client.webhooks().listWebhookDeliveries( ListWebhookDeliveriesRequest .builder() .build() );
-
-
-
limit:
Optional<Double>
-
startingAfter:
Optional<String>— Thenext_cursorof the previous page.
-
endpoint:
Optional<String>
-
status:
Optional<ListWebhookDeliveriesRequestStatus>
-
-
client.webhooks.getWebhookDelivery(id) -> WebhookDeliveryObject
-
-
-
client.webhooks().getWebhookDelivery( "id", GetWebhookDeliveryRequest .builder() .build() );
-
-
-
id:
String
-
-
client.webhooks.replayWebhookDelivery(id) -> WebhookDeliveryObject
-
-
-
Creates a new delivery of the same event to the same endpoint.
-
-
-
client.webhooks().replayWebhookDelivery( "id", ReplayWebhookDeliveryRequest .builder() .build() );
-
-
-
id:
String
-
-
client.webhooks.listEvents() -> EventList
-
-
-
client.webhooks().listEvents( ListEventsRequest .builder() .build() );
-
-
-
limit:
Optional<Double>
-
startingAfter:
Optional<String>— Thenext_cursorof the previous page.
-
type:
Optional<ListEventsRequestType>
-
-