xforge · tài liệu FE

API CMS / admin #

Mọi route /api/v1/* cho nhân viên (XforgeClient). Chi tiết field / kiểu: spec api.openapi.json hoặc kiểu trong api.ts.

auth #

MethodĐườngTóm tắtMethod SDKQuyền
GET/api/v1/auth/api-keysList the caller's API keyslistMyApiKeys
POST/api/v1/auth/api-keysCreate an API keycreateMyApiKeycore.api_keys
PATCH/api/v1/auth/api-keys/{id}Change one of the caller's API keysupdateMyApiKeycore.api_keys
DELETE/api/v1/auth/api-keys/{id}Revoke one of the caller's API keysrevokeMyApiKey
GET/api/v1/auth/configsPublic settingsgetPublicConfigs
POST/api/v1/auth/email/confirmConfirm an email address with a verification tokenconfirmEmail
POST/api/v1/auth/email/verifySend a verification link to the caller's emailrequestEmailVerification
POST/api/v1/auth/loginLog in with login + passwordlogin
POST/api/v1/auth/logoutLog outlogout
GET/api/v1/auth/meGet the current usergetMe
GET/api/v1/auth/mfaGet the caller's MFA statusgetMfaStatus
POST/api/v1/auth/mfa/recovery-codesRegenerate MFA recovery codesregenerateRecoveryCodes
DELETE/api/v1/auth/mfa/smsRemove the backup phone numberdisableMfaSms
POST/api/v1/auth/mfa/sms/confirmConfirm the backup phone number with the texted codeconfirmMfaSms
POST/api/v1/auth/mfa/sms/sendText a sign-in code to the backup phone numbersendMfaSmsCode
POST/api/v1/auth/mfa/sms/setupAdd a backup phone number for sign-in codessetupMfaSms
POST/api/v1/auth/mfa/step-up/optionsStart a passkey step-upgetStepUpPasskeyOptions
DELETE/api/v1/auth/mfa/totpDisable TOTPdisableTotp
POST/api/v1/auth/mfa/totp/confirmConfirm TOTP enrollmentconfirmTotp
POST/api/v1/auth/mfa/totp/setupStart TOTP enrollmentsetupTotp
POST/api/v1/auth/mfa/verifyComplete an MFA loginverifyMfa
GET/api/v1/auth/passkeysList the caller's passkeyslistPasskeys
DELETE/api/v1/auth/passkeys/{id}Delete a passkeydeletePasskey
POST/api/v1/auth/passkeys/login/optionsStart a passkey logingetPasskeyLoginOptions
POST/api/v1/auth/passkeys/login/verifyComplete a passkey loginverifyPasskeyLogin
POST/api/v1/auth/passkeys/register/optionsStart passkey registrationgetPasskeyRegisterOptions
POST/api/v1/auth/passkeys/register/verifyRegister a passkeyregisterPasskey
POST/api/v1/auth/passwordChange the caller's passwordchangePassword
POST/api/v1/auth/password/forgotRequest a password reset emailforgotPassword
POST/api/v1/auth/password/resetSet a new password with a reset tokenresetPassword
POST/api/v1/auth/refreshRotate a refresh tokenrefreshToken
GET/api/v1/auth/sessionsList the caller's sessionslistSessions
DELETE/api/v1/auth/sessions/{id}Sign out one sessionrevokeSession
POST/api/v1/auth/sessions/revoke-allSign out everywhererevokeAllSessions
GET/api/v1/auth/storesList stores the caller can enterlistMyStores
POST/api/v1/auth/switch-storeSwitch to another storeswitchStore
GET/api/v1/auth/trusted-devicesList the caller's remembered deviceslistTrustedDevices
DELETE/api/v1/auth/trusted-devices/{id}Forget one remembered devicerevokeTrustedDevice
POST/api/v1/auth/trusted-devices/revoke-allForget every remembered devicerevokeAllTrustedDevices

brands #

MethodĐườngTóm tắtMethod SDKQuyền
GET/api/v1/brandsList brandslistBrandsbrand.read
POST/api/v1/brandsCreate a brandcreateBrandbrand.create
GET/api/v1/brands/{id}Get a brandgetBrandbrand.read
PUT/api/v1/brands/{id}Replace a brand (full update)replaceBrandbrand.update
PATCH/api/v1/brands/{id}Update a brand (partial)updateBrandbrand.update
DELETE/api/v1/brands/{id}Delete a branddeleteBrandbrand.delete
POST/api/v1/brands/{id}/restoreRestore a brand from the trashrestoreBrandbrand.restore
POST/api/v1/brands/{id}/translationsAdd a brand translationaddBrandTranslationbrand.update
PATCH/api/v1/brands/{id}/translations/{lang}Update a brand translationupdateBrandTranslationbrand.update
DELETE/api/v1/brands/{id}/translations/{lang}Delete a brand translationdeleteBrandTranslationbrand.update
GET/api/v1/brands/optionsList brand optionslistBrandOptionsbrand.read
GET/api/v1/brands/trashList brands in the trashlistBrandTrashbrand.restore

core #

MethodĐườngTóm tắtMethod SDKQuyền
GET/api/v1/core/accountsList accountslistAccountssuperuser
POST/api/v1/core/accountsCreate an accountcreateAccountsuperuser
PUT/api/v1/core/accounts/{id}/limitsSet an account's limitssetAccountLimitssuperuser
GET/api/v1/core/api-keysList API keyslistApiKeyscore.manage_users
DELETE/api/v1/core/api-keys/{id}Revoke an API keyrevokeApiKeycore.manage_users
GET/api/v1/core/auditList audit log entrieslistAuditLogcore.view_audit
GET/api/v1/core/audit/records/{resource}/{id}List the change history of a business recordlistRecordChangescore.view_record_history
GET/api/v1/core/configsList the tenant's settingslistConfigscore.manage_settings
PUT/api/v1/core/configs/{code}Set a setting at one levelsetConfigcore.manage_settings
DELETE/api/v1/core/configs/{code}Remove a setting at one levelresetConfigcore.manage_settings
GET/api/v1/core/customersList storefront customerslistCustomerscore.view_customers
POST/api/v1/core/customersCreate a storefront customer without a passwordcreateCustomercore.manage_customers
GET/api/v1/core/customers/{id}Get a storefront customergetCustomercore.view_customers
PATCH/api/v1/core/customers/{id}Change a storefront customer's name or phoneupdateCustomercore.manage_customers, core.view_customers
POST/api/v1/core/customers/{id}/eraseErase a storefront customer's accounteraseCustomercore.erase_customers
POST/api/v1/core/customers/{id}/unlinkRemove a storefront customer from your storesunlinkCustomercore.erase_customers
GET/api/v1/core/jobsList background jobslistJobssuperuser
GET/api/v1/core/jobs/{id}Get a background jobgetJobsuperuser
DELETE/api/v1/core/jobs/{id}Delete a dead jobdeleteJobsuperuser
POST/api/v1/core/jobs/{id}/retryRun a job again nowretryJobsuperuser
GET/api/v1/core/modulesList moduleslistDatabaseModulessuperuser
DELETE/api/v1/core/modules/{name}Uninstall a moduleuninstallModulesuperuser
POST/api/v1/core/modules/installInstall modulesinstallModulessuperuser
POST/api/v1/core/modules/upgradeUpgrade modulesupgradeModulessuperuser
GET/api/v1/core/permissionsList permissionslistPermissionscore.manage_roles
GET/api/v1/core/record-rulesList record ruleslistRecordRulescore.manage_record_rules
POST/api/v1/core/record-rulesCreate a record rulecreateRecordRulecore.manage_record_rules
DELETE/api/v1/core/record-rules/{id}Delete a record ruledeleteRecordRulecore.manage_record_rules
GET/api/v1/core/rolesList roleslistRolescore.manage_roles
POST/api/v1/core/rolesCreate a rolecreateRolecore.manage_roles
PATCH/api/v1/core/roles/{code}Update a roleupdateRolecore.manage_roles
DELETE/api/v1/core/roles/{code}Delete a roledeleteRolecore.manage_roles
GET/api/v1/core/schedulesList scheduled taskslistSchedulessuperuser
GET/api/v1/core/store-modulesModules of the current storelistCurrentStoreModulescore.manage_store_modules
POST/api/v1/core/store-modules/disableTurn modules off in the current storedisableCurrentStoreModulescore.manage_store_modules
POST/api/v1/core/store-modules/enableTurn modules back on in the current storeenableCurrentStoreModulescore.manage_store_modules
GET/api/v1/core/store-relationsList store relations (chains / marketplaces)listStoreRelationssuperuser
POST/api/v1/core/store-relationsRelate two storesaddStoreRelationsuperuser
DELETE/api/v1/core/store-relationsRemove a store relationremoveStoreRelationsuperuser
GET/api/v1/core/storesList stores with their moduleslistStoreModulessuperuser
POST/api/v1/core/storesCreate a storecreateStoresuperuser
PATCH/api/v1/core/stores/{code}Update a storeupdateStoresuperuser
POST/api/v1/core/stores/{code}/modulesEnable modules for a storeenableStoreModulessuperuser
PUT/api/v1/core/stores/{code}/modulesSet the modules of a storesetStoreModulessuperuser
DELETE/api/v1/core/stores/{code}/modules/{name}Disable a module for a storedisableStoreModulesuperuser
PUT/api/v1/core/stores/{code}/planSet a store's plansetStorePlansuperuser
DELETE/api/v1/core/stores/{code}/planRemove a store's plan (unlimited)removeStorePlansuperuser
GET/api/v1/core/usersList userslistUserscore.manage_users
POST/api/v1/core/usersCreate a usercreateUsercore.manage_users
GET/api/v1/core/users/{id}Get a usergetUsercore.manage_users
PATCH/api/v1/core/users/{id}Update a userupdateUsercore.manage_users
GET/api/v1/core/users/{id}/effective-permissionsExplain a user's effective permissionsgetUserEffectivePermissionscore.manage_users
POST/api/v1/core/users/{id}/mfa/resetReset a user's MFAresetUserMfacore.manage_users
PUT/api/v1/core/users/{id}/permission-overridesReplace a user's permission overridessetUserPermissionOverridescore.manage_users
POST/api/v1/core/users/{id}/unlockUnlock a user's loginunlockUsercore.manage_users
GET/api/v1/core/webhooksOutbound webhooks of this storelistWebhookscore.manage_webhooks
POST/api/v1/core/webhooksRegister an outbound webhookcreateWebhookcore.manage_webhooks
PATCH/api/v1/core/webhooks/{id}Change an outbound webhookupdateWebhookcore.manage_webhooks
DELETE/api/v1/core/webhooks/{id}Remove an outbound webhook (and its delivery log)deleteWebhookcore.manage_webhooks
GET/api/v1/core/webhooks/{id}/deliveriesLatest 50 deliveries of a webhooklistWebhookDeliveriescore.manage_webhooks
POST/api/v1/core/webhooks/{id}/rotate-secretReplace the signing secretrotateWebhookSecretcore.manage_webhooks
POST/api/v1/core/webhooks/{id}/testSend a test event (core.ping)testWebhookcore.manage_webhooks
POST/api/v1/core/webhooks/deliveries/{id}/redeliverSend a past delivery againredeliverWebhookcore.manage_webhooks
GET/api/v1/core/webhooks/eventsWebhook events available in this storelistWebhookEventscore.manage_webhooks
GET/api/v1/core/workersList background job worker processeslistWorkerssuperuser

coupons #

MethodĐườngTóm tắtMethod SDKQuyền
GET/api/v1/couponsList couponslistCouponscoupon.read
POST/api/v1/couponsCreate a couponcreateCouponcoupon.create
GET/api/v1/coupons/{id}Get a coupongetCouponcoupon.read
PUT/api/v1/coupons/{id}Replace a coupon (full update)replaceCouponcoupon.update
PATCH/api/v1/coupons/{id}Update a coupon (partial)updateCouponcoupon.update
DELETE/api/v1/coupons/{id}Delete a coupondeleteCouponcoupon.delete
POST/api/v1/coupons/{id}/restoreRestore a coupon from the trashrestoreCouponcoupon.restore
GET/api/v1/coupons/optionsList coupon optionslistCouponOptionscoupon.read
GET/api/v1/coupons/trashList coupons in the trashlistCouponTrashcoupon.restore

customer-type-price-rules #

MethodĐườngTóm tắtMethod SDKQuyền
GET/api/v1/customer-type-price-rulesList customer type price ruleslistCustomerTypePriceRulescustomer_type_price_rule.read
POST/api/v1/customer-type-price-rulesCreate a customer type price rulecreateCustomerTypePriceRulecustomer_type_price_rule.create
GET/api/v1/customer-type-price-rules/{id}Get a customer type price rulegetCustomerTypePriceRulecustomer_type_price_rule.read
PATCH/api/v1/customer-type-price-rules/{id}Update a customer type price rule (partial)updateCustomerTypePriceRulecustomer_type_price_rule.update
DELETE/api/v1/customer-type-price-rules/{id}Delete a customer type price ruledeleteCustomerTypePriceRulecustomer_type_price_rule.delete
GET/api/v1/customer-type-price-rules/optionsList customer type price rule optionslistCustomerTypePriceRuleOptionscustomer_type_price_rule.read

customer-types #

MethodĐườngTóm tắtMethod SDKQuyền
GET/api/v1/customer-typesList customer typeslistCustomerTypescustomer_type.read
POST/api/v1/customer-typesCreate a customer typecreateCustomerTypecustomer_type.create
GET/api/v1/customer-types/{id}Get a customer typegetCustomerTypecustomer_type.read
PUT/api/v1/customer-types/{id}Replace a customer type (full update)replaceCustomerTypecustomer_type.update
PATCH/api/v1/customer-types/{id}Update a customer type (partial)updateCustomerTypecustomer_type.update
DELETE/api/v1/customer-types/{id}Delete a customer typedeleteCustomerTypecustomer_type.delete
POST/api/v1/customer-types/{id}/restoreRestore a customer type from the trashrestoreCustomerTypecustomer_type.restore
GET/api/v1/customer-types/membersCustomers and their customer typelistCustomerTypeMemberscustomer_type.read
PUT/api/v1/customer-types/members/{customerId}Set the customer type of a customersetCustomerTypecustomer_type.assign
GET/api/v1/customer-types/optionsList customer type optionslistCustomerTypeOptionscustomer_type.read
GET/api/v1/customer-types/trashList customer types in the trashlistCustomerTypeTrashcustomer_type.restore

data #

MethodĐườngTóm tắtMethod SDKQuyền
GET/api/v1/data/datasetsDatasets the user can export or importlistDatasets
GET/api/v1/data/datasets/{name}/exportExport a dataset as CSV or ExcelexportDataset
POST/api/v1/data/datasets/{name}/exportsExport a dataset in the backgroundstartDatasetExport
POST/api/v1/data/datasets/{name}/importImport a CSV or Excel fileimportDataset
POST/api/v1/data/datasets/{name}/importsImport a large CSV or Excel file in the backgroundstartDatasetImport
GET/api/v1/data/datasets/{name}/templateEmpty import file (header row only)datasetImportTemplate
GET/api/v1/data/exportsMy background exports in this storelistDataExports
GET/api/v1/data/exports/{id}/fileDownload a finished background exportdownloadDataExport
GET/api/v1/data/importsMy background imports in this storelistDataImports
GET/api/v1/data/imports/{id}A background import with its errors by linegetDataImport

files #

MethodĐườngTóm tắtMethod SDKQuyền
GET/api/v1/filesList fileslistFilesfiles.read
POST/api/v1/filesUpload a fileuploadFilefiles.write
GET/api/v1/files/{id}Get file metadatagetFilefiles.read
DELETE/api/v1/files/{id}Delete a filedeleteFilefiles.write
GET/api/v1/files/{id}/contentDownload file contentdownloadFilefiles.read
POST/api/v1/files/uploadsStart a chunked uploadstartUploadfiles.write
GET/api/v1/files/uploads/{id}Get a chunked upload sessiongetUploadfiles.write
DELETE/api/v1/files/uploads/{id}Abort a chunked uploadabortUploadfiles.write
POST/api/v1/files/uploads/{id}/completeComplete a chunked uploadcompleteUploadfiles.write
PUT/api/v1/files/uploads/{id}/parts/{n}Upload one partuploadPartfiles.write
GET/api/v1/files/usageStorage used and its limitsgetFileUsagefiles.read

gift-cards #

MethodĐườngTóm tắtMethod SDKQuyền
GET/api/v1/gift-cardsList gift cardslistGiftCardsgift_card.read
POST/api/v1/gift-cardsCreate a gift cardcreateGiftCardgift_card.create
GET/api/v1/gift-cards/{id}Get a gift cardgetGiftCardgift_card.read
PATCH/api/v1/gift-cards/{id}Update a gift card (partial)updateGiftCardgift_card.update
DELETE/api/v1/gift-cards/{id}Delete a gift carddeleteGiftCardgift_card.delete
POST/api/v1/gift-cards/{id}/adjustTop up or deduct a gift card balanceadjustGiftCardgift_card.adjust
GET/api/v1/gift-cards/{id}/transactionsLedger of a gift cardlistGiftCardTransactionsgift_card.read
GET/api/v1/gift-cards/optionsList gift card optionslistGiftCardOptionsgift_card.read
GET/api/v1/gift-cards/order-refundsWhat can still go back to gift cards for an orderlistGiftCardOrderRefundablesgift_card.read
POST/api/v1/gift-cards/order-refundsGive the gift card part of an order back to the cardrefundOrderToGiftCardgift_card.adjust

me #

MethodĐườngTóm tắtMethod SDKQuyền
GET/api/v1/me/eventsRealtime events (Server-Sent Events)streamMyEvents
GET/api/v1/me/notificationsList my notificationslistMyNotifications
POST/api/v1/me/notifications/{id}/readMark one of my notifications as readmarkMyNotificationRead
POST/api/v1/me/notifications/read-allMark all my notifications as readmarkAllMyNotificationsRead
GET/api/v1/me/notifications/unread-countCount my unread notificationscountMyUnreadNotifications
GET/api/v1/me/pushWeb Push configurationgetMyPushConfig
GET/api/v1/me/push/subscriptionsMy browsers with Web Push in this storelistMyPushSubscriptions
POST/api/v1/me/push/subscriptionsTurn on Web Push for this browsercreateMyPushSubscription
DELETE/api/v1/me/push/subscriptions/{id}Turn off Web Push for a browserdeleteMyPushSubscription
MethodĐườngTóm tắtMethod SDKQuyền
GET/api/v1/menuAdmin menu entries the current user can uselistMenu
GET/api/v1/menu/{key}/screenData description of a menu entry's admin screengetMenuScreen

modules #

MethodĐườngTóm tắtMethod SDKQuyền
GET/api/v1/modulesModules for building the menulistModules

orders #

MethodĐườngTóm tắtMethod SDKQuyền
GET/api/v1/ordersList orderslistOrdersorder.read
POST/api/v1/ordersCreate an ordercreateOrderorder.create
GET/api/v1/orders/{id}Get an order with its linesgetOrderorder.read
POST/api/v1/orders/{id}/cancelCancel an ordercancelOrderorder.cancel
POST/api/v1/orders/{id}/completeComplete an ordercompleteOrderorder.manage
POST/api/v1/orders/{id}/confirmConfirm an orderconfirmOrderorder.manage
POST/api/v1/orders/{id}/fulfillFulfil an order (ship the goods)fulfillOrderorder.manage
POST/api/v1/orders/{id}/record-paymentRecord money received outside the gatewaysrecordOrderPaymentorder.record_payment
POST/api/v1/orders/quotePreview the totals of an order to createquoteOrderorder.create

payments #

MethodĐườngTóm tắtMethod SDKQuyền
GET/api/v1/payments/intentsList payment intentslistPaymentIntentspayments.read
POST/api/v1/payments/intentsCreate a payment intentcreatePaymentIntentpayments.write
GET/api/v1/payments/intents/{id}Get a payment intentgetPaymentIntentpayments.read
POST/api/v1/payments/intents/{id}/cancelCancel a pending payment intentcancelPaymentIntentpayments.write
POST/api/v1/payments/intents/{id}/einvoice/retryRetry the VAT e-invoice of a paid intentretryPaymentIntentEinvoicepayments.reconcile
POST/api/v1/payments/intents/{id}/momoStart a MoMo payment for an intentcreatePaymentIntentMomoCheckoutpayments.write
POST/api/v1/payments/intents/{id}/momo/queryAsk MoMo about the intent's latest MoMo orderqueryPaymentIntentMomopayments.reconcile
GET/api/v1/payments/transactionsList incoming transactionslistPaymentTransactionspayments.read
POST/api/v1/payments/transactions/{id}/ignoreIgnore an unmatched transactionignorePaymentTransactionpayments.reconcile
POST/api/v1/payments/transactions/{id}/matchMatch an unmatched transaction to an intentmatchPaymentTransactionpayments.reconcile
GET/api/v1/payments/webhooksWebhook URLs to paste into the payment gatewaysgetPaymentWebhookUrlspayments.read

plan #

MethodĐườngTóm tắtMethod SDKQuyền
GET/api/v1/planThe current store's plan, limits and usagegetStorePlan

pre-order-settings #

MethodĐườngTóm tắtMethod SDKQuyền
GET/api/v1/pre-order-settingsList pre-order settingslistPreOrderSettingspre_order_setting.read
POST/api/v1/pre-order-settingsCreate a pre-order settingcreatePreOrderSettingpre_order_setting.create
GET/api/v1/pre-order-settings/{id}Get a pre-order settinggetPreOrderSettingpre_order_setting.read
PATCH/api/v1/pre-order-settings/{id}Update a pre-order setting (partial)updatePreOrderSettingpre_order_setting.update
DELETE/api/v1/pre-order-settings/{id}Delete a pre-order settingdeletePreOrderSettingpre_order_setting.delete
POST/api/v1/pre-order-settings/{id}/restoreRestore a pre-order setting from the trashrestorePreOrderSettingpre_order_setting.restore
GET/api/v1/pre-order-settings/optionsList pre-order setting optionslistPreOrderSettingOptionspre_order_setting.read
GET/api/v1/pre-order-settings/trashList pre-order settings in the trashlistPreOrderSettingTrashpre_order_setting.restore

price #

MethodĐườngTóm tắtMethod SDKQuyền
POST/api/v1/price/quoteQuote lines (staff)quotePricesprice.quote

price-lists #

MethodĐườngTóm tắtMethod SDKQuyền
GET/api/v1/price-listsList price listslistPriceListsprice_list.read
POST/api/v1/price-listsCreate a price listcreatePriceListprice_list.create
GET/api/v1/price-lists/{id}Get a price listgetPriceListprice_list.read
PUT/api/v1/price-lists/{id}Replace a price list (full update)replacePriceListprice_list.update
PATCH/api/v1/price-lists/{id}Update a price list (partial)updatePriceListprice_list.update
DELETE/api/v1/price-lists/{id}Delete a price listdeletePriceListprice_list.delete
GET/api/v1/price-lists/{id}/customersCustomers of a price listlistPriceListCustomersprice_list.read
PUT/api/v1/price-lists/{id}/customersReplace the customers of a price listsetPriceListCustomersprice_list.update
GET/api/v1/price-lists/{id}/itemsPrices of a price listlistPriceListItemsprice_list.read
PUT/api/v1/price-lists/{id}/itemsReplace the prices of a price listsetPriceListItemsprice_list.update
POST/api/v1/price-lists/{id}/restoreRestore a price list from the trashrestorePriceListprice_list.restore
GET/api/v1/price-lists/optionsList price list optionslistPriceListOptionsprice_list.read
GET/api/v1/price-lists/trashList price lists in the trashlistPriceListTrashprice_list.restore

prints #

MethodĐườngTóm tắtMethod SDKQuyền
GET/api/v1/printsPrintable document templates I can use in this storelistPrintables
GET/api/v1/prints/{name}/{id}Render a document for printing (HTML) or as PDFprintDocument
POST/api/v1/prints/{name}/{id}/emailEmail a document to the recipient the module definesemailDocument

product-categories #

MethodĐườngTóm tắtMethod SDKQuyền
GET/api/v1/product-categoriesList product categorieslistProductCategoriesproduct_category.read
POST/api/v1/product-categoriesCreate a product categorycreateProductCategoryproduct_category.create
GET/api/v1/product-categories/{id}Get a product categorygetProductCategoryproduct_category.read
PATCH/api/v1/product-categories/{id}Update a product category (partial)updateProductCategoryproduct_category.update
DELETE/api/v1/product-categories/{id}Delete a product categorydeleteProductCategoryproduct_category.delete
GET/api/v1/product-categories/optionsList product category optionslistProductCategoryOptionsproduct_category.read

products #

MethodĐườngTóm tắtMethod SDKQuyền
GET/api/v1/productsList productslistProductsproduct.read
POST/api/v1/productsCreate a productcreateProductproduct.create
GET/api/v1/products/{id}Get a productgetProductproduct.read
PATCH/api/v1/products/{id}Update a product (partial)updateProductproduct.update
DELETE/api/v1/products/{id}Delete a productdeleteProductproduct.delete
POST/api/v1/products/{id}/restoreRestore a product from the trashrestoreProductproduct.restore
POST/api/v1/products/{id}/variantsAdd a product variantaddProductVariantproduct.update
PATCH/api/v1/products/{id}/variants/{variantId}Update a product variant (partial)updateProductVariantproduct.update
DELETE/api/v1/products/{id}/variants/{variantId}Delete a product variantdeleteProductVariantproduct.update
GET/api/v1/products/attributesList product attributeslistProductAttributesproduct.read
POST/api/v1/products/attributesCreate a product attributecreateProductAttributeproduct.manage_attributes
GET/api/v1/products/attributes/{id}Get a product attributegetProductAttributeproduct.read
PATCH/api/v1/products/attributes/{id}Update a product attribute (partial)updateProductAttributeproduct.manage_attributes
DELETE/api/v1/products/attributes/{id}Delete a product attributedeleteProductAttributeproduct.manage_attributes
POST/api/v1/products/attributes/{id}/valuesAdd a value to a product attributeaddProductAttributeValueproduct.manage_attributes
PATCH/api/v1/products/attributes/{id}/values/{valueId}Update a product attribute value (partial)updateProductAttributeValueproduct.manage_attributes
DELETE/api/v1/products/attributes/{id}/values/{valueId}Delete a product attribute valuedeleteProductAttributeValueproduct.manage_attributes
GET/api/v1/products/optionsList product optionslistProductOptionsproduct.read
GET/api/v1/products/trashList products in the trashlistProductTrashproduct.restore
GET/api/v1/products/variants/optionsList product variant optionslistProductVariantOptionsproduct.read

purchase-orders #

MethodĐườngTóm tắtMethod SDKQuyền
GET/api/v1/purchase-ordersList purchase orderslistPurchaseOrderspurchase_order.read
POST/api/v1/purchase-ordersCreate a purchase order (draft)createPurchaseOrderpurchase_order.create
GET/api/v1/purchase-orders/{id}Get a purchase order with its linesgetPurchaseOrderpurchase_order.read
DELETE/api/v1/purchase-orders/{id}Delete a draft purchase orderdeletePurchaseOrderpurchase_order.delete
POST/api/v1/purchase-orders/{id}/cancelCancel a purchase ordercancelPurchaseOrderpurchase_order.update
POST/api/v1/purchase-orders/{id}/closeClose a fully received purchase orderclosePurchaseOrderpurchase_order.update
POST/api/v1/purchase-orders/{id}/placePlace a draft purchase orderplacePurchaseOrderpurchase_order.update
POST/api/v1/purchase-orders/{id}/receiveReceive goods of a purchase orderreceivePurchaseOrderpurchase_order.receive, stock.view_cost
POST/api/v1/purchase-orders/{id}/returnsReturn received goods to the supplierreturnPurchaseOrderItemspurchase_order.receive
POST/api/v1/purchase-orders/{id}/short-closeClose a partially received purchase ordershortClosePurchaseOrderpurchase_order.update

refunds #

MethodĐườngTóm tắtMethod SDKQuyền
GET/api/v1/refundsList refundslistRefundsrefund.read
POST/api/v1/refundsCreate a refund for an order (pending)createRefundrefund.create
GET/api/v1/refunds/{id}Get a refundgetRefundrefund.read
POST/api/v1/refunds/{id}/completeComplete a refund (money paid back)completeRefundrefund.complete
POST/api/v1/refunds/{id}/failMark a refund failedfailRefundrefund.complete
POST/api/v1/refunds/{id}/sendSend a MoMo refund through the store's MoMo accountsendRefundrefund.send

reports #

MethodĐườngTóm tắtMethod SDKQuyền
GET/api/v1/reportsReports the user can runlistReports
POST/api/v1/reports/{name}/exportRun a report and download it as CSV or ExcelexportReport
POST/api/v1/reports/{name}/exportsRun a report in the backgroundstartReportExport
POST/api/v1/reports/{name}/runRun a reportrunReport
GET/api/v1/reports/schedulesMy scheduled report emails in this storelistReportSchedules
POST/api/v1/reports/schedulesEmail me a report on a schedulecreateReportSchedule
PATCH/api/v1/reports/schedules/{id}Change or pause a scheduled reportupdateReportSchedule
DELETE/api/v1/reports/schedules/{id}Stop a scheduled reportdeleteReportSchedule

return-requests #

MethodĐườngTóm tắtMethod SDKQuyền
GET/api/v1/return-requestsList return requestslistReturnRequestsreturn_request.read
POST/api/v1/return-requestsCreate a return request for an ordercreateReturnRequestreturn_request.create
GET/api/v1/return-requests/{id}Get a return requestgetReturnRequestreturn_request.read
POST/api/v1/return-requests/{id}/approveApprove a return requestapproveReturnRequestreturn_request.manage
POST/api/v1/return-requests/{id}/cancelCancel a return requestcancelReturnRequestreturn_request.manage
POST/api/v1/return-requests/{id}/closeClose a received return without a refundcloseReturnRequestreturn_request.manage
POST/api/v1/return-requests/{id}/receiveReceive the returned goodsreceiveReturnRequestreturn_request.receive
POST/api/v1/return-requests/{id}/refundRefund a received returnrefundReturnRequestreturn_request.refund
POST/api/v1/return-requests/{id}/rejectReject a return requestrejectReturnRequestreturn_request.manage

shipments #

MethodĐườngTóm tắtMethod SDKQuyền
GET/api/v1/shipmentsList shipmentslistShipmentsshipment.read
POST/api/v1/shipmentsCreate a shipment for an order (pending)createShipmentshipment.manage
GET/api/v1/shipments/{id}Get a shipmentgetShipmentshipment.read
PATCH/api/v1/shipments/{id}Update carrier details of a shipmentupdateShipmentshipment.manage
POST/api/v1/shipments/{id}/cod-remitRecord that the carrier remitted the cash on deliveryremitShipmentCodshipment.reconcile
POST/api/v1/shipments/{id}/statusMove a shipment to its next statussetShipmentStatusshipment.manage
GET/api/v1/shipments/cod-summaryCash on delivery the carriers still holdgetShipmentCodSummaryshipment.read

stock #

MethodĐườngTóm tắtMethod SDKQuyền
POST/api/v1/stock/adjustmentsAdjust stock quantitiescreateStockAdjustmentstock.adjust
GET/api/v1/stock/allocationPreview which warehouses would fulfil a quantitypreviewStockAllocationstock.read
GET/api/v1/stock/batchesList stock batches (lots)listStockBatchesstock.read
GET/api/v1/stock/batches/expiringList batches expiring soonlistExpiringStockBatchesstock.read
GET/api/v1/stock/levelsList stock levelslistStockLevelsstock.read
GET/api/v1/stock/levels/{id}Get a stock levelgetStockLevelstock.read
PATCH/api/v1/stock/levels/{id}Set the low-stock threshold or pick locationupdateStockLevelstock.adjust
GET/api/v1/stock/movementsList stock movements (ledger)listStockMovementsstock.read
POST/api/v1/stock/receiptsReceive goods into a warehousecreateStockReceiptstock.receive
GET/api/v1/stock/serialsList serial numberslistStockSerialsstock.read
POST/api/v1/stock/supplier-returnsReturn goods to a suppliercreateStockSupplierReturnstock.receive
GET/api/v1/stock/tracking/{variantId}Get the tracking mode of a variantgetStockTrackingstock.read
PUT/api/v1/stock/tracking/{variantId}Set the tracking mode of a variantsetStockTrackingstock.manage_tracking
GET/api/v1/stock/vouchersList stock voucherslistStockVouchersstock.read
GET/api/v1/stock/vouchers/{id}Get a stock voucher with its linesgetStockVoucherstock.read

stock-counts #

MethodĐườngTóm tắtMethod SDKQuyền
GET/api/v1/stock-countsList stock countslistStockCountsstock_count.read
POST/api/v1/stock-countsOpen a stock countcreateStockCountstock_count.create
GET/api/v1/stock-counts/{id}Get a stock count with its linesgetStockCountstock_count.read
DELETE/api/v1/stock-counts/{id}Delete an unreconciled stock countdeleteStockCountstock_count.delete
POST/api/v1/stock-counts/{id}/cancelCancel an open stock countcancelStockCountstock_count.create
POST/api/v1/stock-counts/{id}/reconcileReconcile a stock countreconcileStockCountstock_count.reconcile

stock-transfers #

MethodĐườngTóm tắtMethod SDKQuyền
GET/api/v1/stock-transfersList stock transferslistStockTransfersstock_transfer.read
POST/api/v1/stock-transfersCreate a stock transfer (draft)createStockTransferstock_transfer.create
GET/api/v1/stock-transfers/{id}Get a stock transfer with its linesgetStockTransferstock_transfer.read
DELETE/api/v1/stock-transfers/{id}Delete a draft stock transferdeleteStockTransferstock_transfer.delete
POST/api/v1/stock-transfers/{id}/cancelCancel a stock transfercancelStockTransferstock_transfer.ship
POST/api/v1/stock-transfers/{id}/receiveReceive a stock transferreceiveStockTransferstock_transfer.receive
POST/api/v1/stock-transfers/{id}/shipShip a stock transfershipStockTransferstock_transfer.ship

suppliers #

MethodĐườngTóm tắtMethod SDKQuyền
GET/api/v1/suppliersList supplierslistSupplierssupplier.read
POST/api/v1/suppliersCreate a suppliercreateSuppliersupplier.create
GET/api/v1/suppliers/{id}Get a suppliergetSuppliersupplier.read
PUT/api/v1/suppliers/{id}Replace a supplier (full update)replaceSuppliersupplier.update
PATCH/api/v1/suppliers/{id}Update a supplier (partial)updateSuppliersupplier.update
DELETE/api/v1/suppliers/{id}Delete a supplierdeleteSuppliersupplier.delete
POST/api/v1/suppliers/{id}/restoreRestore a supplier from the trashrestoreSuppliersupplier.restore
GET/api/v1/suppliers/optionsList supplier optionslistSupplierOptionssupplier.read
GET/api/v1/suppliers/trashList suppliers in the trashlistSupplierTrashsupplier.restore

tax-classes #

MethodĐườngTóm tắtMethod SDKQuyền
GET/api/v1/tax-classesList tax classeslistTaxClassestax.read
POST/api/v1/tax-classesCreate a tax classcreateTaxClasstax.create
GET/api/v1/tax-classes/{id}Get a tax classgetTaxClasstax.read
PUT/api/v1/tax-classes/{id}Replace a tax class (full update)replaceTaxClasstax.update
PATCH/api/v1/tax-classes/{id}Update a tax class (partial)updateTaxClasstax.update
DELETE/api/v1/tax-classes/{id}Delete a tax classdeleteTaxClasstax.delete
GET/api/v1/tax-classes/{id}/ratesList the rates of a tax classlistTaxRatestax.read
POST/api/v1/tax-classes/{id}/ratesAdd a rate to a tax classcreateTaxRatetax.update
PUT/api/v1/tax-classes/{id}/rates/{rateId}Replace a tax ratereplaceTaxRatetax.update
DELETE/api/v1/tax-classes/{id}/rates/{rateId}Delete a tax ratedeleteTaxRatetax.update
POST/api/v1/tax-classes/{id}/restoreRestore a tax class from the trashrestoreTaxClasstax.restore
GET/api/v1/tax-classes/optionsList tax class optionslistTaxClassOptionstax.read
GET/api/v1/tax-classes/products/{productId}Get the tax class of a productgetProductTaxClasstax.read
PUT/api/v1/tax-classes/products/{productId}Set the tax class of a productsetProductTaxClasstax.update
GET/api/v1/tax-classes/trashList tax classes in the trashlistTaxClassTrashtax.restore

uoms #

MethodĐườngTóm tắtMethod SDKQuyền
GET/api/v1/uomsList units of measurelistUomsuom.read
POST/api/v1/uomsCreate a unit of measurecreateUomuom.create
GET/api/v1/uoms/{id}Get a unit of measuregetUomuom.read
PUT/api/v1/uoms/{id}Replace a unit of measure (full update)replaceUomuom.update
PATCH/api/v1/uoms/{id}Update a unit of measure (partial)updateUomuom.update
DELETE/api/v1/uoms/{id}Delete a unit of measuredeleteUomuom.delete
POST/api/v1/uoms/{id}/restoreRestore a unit of measure from the trashrestoreUomuom.restore
PUT/api/v1/uoms/{id}/translationsReplace the names of a unit of measuresetUomTranslationsuom.update
POST/api/v1/uoms/baselineInstall the baseline units of measureinstallBaselineUomsuom.create
GET/api/v1/uoms/optionsList unit of measure optionslistUomOptionsuom.read
GET/api/v1/uoms/trashList units of measure in the trashlistUomTrashuom.restore

warehouses #

MethodĐườngTóm tắtMethod SDKQuyền
GET/api/v1/warehousesList warehouseslistWarehouseswarehouse.read
POST/api/v1/warehousesCreate a warehousecreateWarehousewarehouse.create
GET/api/v1/warehouses/{id}Get a warehousegetWarehousewarehouse.read
PUT/api/v1/warehouses/{id}Replace a warehouse (full update)replaceWarehousewarehouse.update
PATCH/api/v1/warehouses/{id}Update a warehouse (partial)updateWarehousewarehouse.update
DELETE/api/v1/warehouses/{id}Delete a warehousedeleteWarehousewarehouse.delete
GET/api/v1/warehouses/{id}/locationsList locations of a warehouselistWarehouseLocationswarehouse.read
POST/api/v1/warehouses/{id}/locationsCreate a warehouse locationcreateWarehouseLocationwarehouse.manage_locations
GET/api/v1/warehouses/{id}/locations/{locationId}Get a warehouse locationgetWarehouseLocationwarehouse.read
PATCH/api/v1/warehouses/{id}/locations/{locationId}Update a warehouse location (partial)updateWarehouseLocationwarehouse.manage_locations
DELETE/api/v1/warehouses/{id}/locations/{locationId}Delete a warehouse locationdeleteWarehouseLocationwarehouse.manage_locations
POST/api/v1/warehouses/{id}/restoreRestore a warehouse from the trashrestoreWarehousewarehouse.restore
GET/api/v1/warehouses/optionsList warehouse optionslistWarehouseOptionswarehouse.read
GET/api/v1/warehouses/trashList warehouses in the trashlistWarehouseTrashwarehouse.restore

wishlist #

MethodĐườngTóm tắtMethod SDKQuyền
GET/api/v1/wishlistWishlist items of the store's customerslistWishlistItemswishlist.read
Nguồn: xforge-modules: sdk/api.openapi.json