@rebilly/api 0.19.8 → 0.19.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1 -1
- package/dist/core-client.d.ts +54 -54
- package/dist/core-client.js +44 -0
- package/dist/core-client.schemas.d.ts +44 -0
- package/dist/runtime/create-client.js +1 -1
- package/dist/runtime/send.js +6 -6
- package/dist/runtime/types.d.ts +1 -1
- package/dist/storefront-client.d.ts +23 -23
- package/dist/storefront-client.js +44 -0
- package/dist/storefront-client.schemas.d.ts +44 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/core-client.d.ts
CHANGED
|
@@ -285,7 +285,7 @@ export type DeleteAuthenticationTokenResponseHeaders = {
|
|
|
285
285
|
export type DeleteAuthenticationTokenVariables = {
|
|
286
286
|
path: DeleteAuthenticationTokenPath;
|
|
287
287
|
};
|
|
288
|
-
export type PostAuthenticationTokenExchangeResult = CustomerJWT
|
|
288
|
+
export type PostAuthenticationTokenExchangeResult = Omit<CustomerJWT, "invalidate" | "oneTimePassword">;
|
|
289
289
|
export type PostAuthenticationTokenExchangePath = {
|
|
290
290
|
/**
|
|
291
291
|
* ID of the authentication token.
|
|
@@ -578,7 +578,7 @@ export type PostCouponExpirationVariables = {
|
|
|
578
578
|
path: PostCouponExpirationPath;
|
|
579
579
|
body?: PostCouponExpirationBody;
|
|
580
580
|
};
|
|
581
|
-
export type GetCredentialCollectionResult = CustomerCredential[];
|
|
581
|
+
export type GetCredentialCollectionResult = Omit<CustomerCredential, "password">[];
|
|
582
582
|
export type GetCredentialCollectionQuery = {
|
|
583
583
|
/**
|
|
584
584
|
* Limit the number of collection items to be returned.
|
|
@@ -602,7 +602,7 @@ export type GetCredentialCollectionResponseHeaders = {
|
|
|
602
602
|
export type GetCredentialCollectionVariables = {
|
|
603
603
|
query?: GetCredentialCollectionQuery;
|
|
604
604
|
};
|
|
605
|
-
export type PostCredentialResult = CustomerCredential
|
|
605
|
+
export type PostCredentialResult = Omit<CustomerCredential, "password">;
|
|
606
606
|
export type PostCredentialBody = Omit<CustomerCredential, "id" | "_links">;
|
|
607
607
|
export type PostCredentialResponseHeaders = {
|
|
608
608
|
location?: string;
|
|
@@ -612,7 +612,7 @@ export type PostCredentialResponseHeaders = {
|
|
|
612
612
|
export type PostCredentialVariables = {
|
|
613
613
|
body: PostCredentialBody;
|
|
614
614
|
};
|
|
615
|
-
export type GetCredentialResult = CustomerCredential
|
|
615
|
+
export type GetCredentialResult = Omit<CustomerCredential, "password">;
|
|
616
616
|
export type GetCredentialPath = {
|
|
617
617
|
/**
|
|
618
618
|
* ID of the resource.
|
|
@@ -624,7 +624,7 @@ export type GetCredentialPath = {
|
|
|
624
624
|
export type GetCredentialVariables = {
|
|
625
625
|
path: GetCredentialPath;
|
|
626
626
|
};
|
|
627
|
-
export type PutCredentialResult = CustomerCredential
|
|
627
|
+
export type PutCredentialResult = Omit<CustomerCredential, "password">;
|
|
628
628
|
export type PutCredentialPath = {
|
|
629
629
|
/**
|
|
630
630
|
* ID of the resource.
|
|
@@ -722,7 +722,7 @@ export type PutCustomFieldVariables = {
|
|
|
722
722
|
path: PutCustomFieldPath;
|
|
723
723
|
body: PutCustomFieldBody;
|
|
724
724
|
};
|
|
725
|
-
export type GetCustomerCollectionResult = Customer[];
|
|
725
|
+
export type GetCustomerCollectionResult = Omit<Customer, "paymentToken" | "defaultPaymentInstrumentId" | "leadSource">[];
|
|
726
726
|
export type GetCustomerCollectionQuery = {
|
|
727
727
|
/**
|
|
728
728
|
* Limit the number of collection items to be returned.
|
|
@@ -777,7 +777,7 @@ export type GetCustomerCollectionResponseHeaders = {
|
|
|
777
777
|
export type GetCustomerCollectionVariables = {
|
|
778
778
|
query?: GetCustomerCollectionQuery;
|
|
779
779
|
};
|
|
780
|
-
export type PostCustomerResult = Customer
|
|
780
|
+
export type PostCustomerResult = Omit<Customer, "paymentToken" | "defaultPaymentInstrumentId" | "leadSource">;
|
|
781
781
|
export type PostCustomerBody = Omit<Customer, "id" | "email" | "firstName" | "lastName" | "defaultPaymentInstrument" | "paymentCount" | "lastPaymentTime" | "invoiceCount" | "tags" | "revision" | "hasFulfilledKyc" | "organizationId" | "_links" | "_embedded">;
|
|
782
782
|
export type PostCustomerResponseHeaders = {
|
|
783
783
|
location?: string;
|
|
@@ -787,7 +787,7 @@ export type PostCustomerResponseHeaders = {
|
|
|
787
787
|
export type PostCustomerVariables = {
|
|
788
788
|
body: PostCustomerBody;
|
|
789
789
|
};
|
|
790
|
-
export type GetCustomerResult = Customer
|
|
790
|
+
export type GetCustomerResult = Omit<Customer, "paymentToken" | "defaultPaymentInstrumentId" | "leadSource">;
|
|
791
791
|
export type GetCustomerPath = {
|
|
792
792
|
/**
|
|
793
793
|
* ID of the resource.
|
|
@@ -815,7 +815,7 @@ export type GetCustomerVariables = {
|
|
|
815
815
|
path: GetCustomerPath;
|
|
816
816
|
query?: GetCustomerQuery;
|
|
817
817
|
};
|
|
818
|
-
export type PutCustomerResult = Customer
|
|
818
|
+
export type PutCustomerResult = Omit<Customer, "paymentToken" | "defaultPaymentInstrumentId" | "leadSource">;
|
|
819
819
|
export type PutCustomerPath = {
|
|
820
820
|
/**
|
|
821
821
|
* ID of the resource.
|
|
@@ -960,7 +960,7 @@ export type DeleteCustomerLeadSourceResponseHeaders = {
|
|
|
960
960
|
export type DeleteCustomerLeadSourceVariables = {
|
|
961
961
|
path: DeleteCustomerLeadSourcePath;
|
|
962
962
|
};
|
|
963
|
-
export type GetCustomerTimelineCollectionResult = CustomerTimeline[];
|
|
963
|
+
export type GetCustomerTimelineCollectionResult = Omit<CustomerTimeline, "customData">[];
|
|
964
964
|
export type GetCustomerTimelineCollectionPath = {
|
|
965
965
|
/**
|
|
966
966
|
* ID of the resource.
|
|
@@ -1011,7 +1011,7 @@ export type GetCustomerTimelineCollectionVariables = {
|
|
|
1011
1011
|
path: GetCustomerTimelineCollectionPath;
|
|
1012
1012
|
query?: GetCustomerTimelineCollectionQuery;
|
|
1013
1013
|
};
|
|
1014
|
-
export type PostCustomerTimelineResult = CustomerTimeline
|
|
1014
|
+
export type PostCustomerTimelineResult = Omit<CustomerTimeline, "customData">;
|
|
1015
1015
|
export type PostCustomerTimelinePath = {
|
|
1016
1016
|
/**
|
|
1017
1017
|
* ID of the resource.
|
|
@@ -1030,7 +1030,7 @@ export type PostCustomerTimelineVariables = {
|
|
|
1030
1030
|
path: PostCustomerTimelinePath;
|
|
1031
1031
|
body: PostCustomerTimelineBody;
|
|
1032
1032
|
};
|
|
1033
|
-
export type GetCustomerTimelineResult = CustomerTimeline
|
|
1033
|
+
export type GetCustomerTimelineResult = Omit<CustomerTimeline, "customData">;
|
|
1034
1034
|
export type GetCustomerTimelinePath = {
|
|
1035
1035
|
/**
|
|
1036
1036
|
* ID of the resource.
|
|
@@ -4304,7 +4304,7 @@ export type PatchOrderCancellationVariables = {
|
|
|
4304
4304
|
path: PatchOrderCancellationPath;
|
|
4305
4305
|
body: PatchOrderCancellationBody;
|
|
4306
4306
|
};
|
|
4307
|
-
export type GetOrderReactivationCollectionResult = OrderReactivation[];
|
|
4307
|
+
export type GetOrderReactivationCollectionResult = Omit<OrderReactivation, "effectiveTime" | "paymentInstrumentId">[];
|
|
4308
4308
|
export type GetOrderReactivationCollectionQuery = {
|
|
4309
4309
|
/**
|
|
4310
4310
|
* Limit the number of collection items to be returned.
|
|
@@ -4342,7 +4342,7 @@ export type GetOrderReactivationCollectionResponseHeaders = {
|
|
|
4342
4342
|
export type GetOrderReactivationCollectionVariables = {
|
|
4343
4343
|
query?: GetOrderReactivationCollectionQuery;
|
|
4344
4344
|
};
|
|
4345
|
-
export type PostOrderReactivationResult = OrderReactivation
|
|
4345
|
+
export type PostOrderReactivationResult = Omit<OrderReactivation, "effectiveTime" | "paymentInstrumentId">;
|
|
4346
4346
|
export type PostOrderReactivationBody = Omit<OrderReactivation, "id" | "cancellationId">;
|
|
4347
4347
|
export type PostOrderReactivationResponseHeaders = {
|
|
4348
4348
|
location?: string;
|
|
@@ -4352,7 +4352,7 @@ export type PostOrderReactivationResponseHeaders = {
|
|
|
4352
4352
|
export type PostOrderReactivationVariables = {
|
|
4353
4353
|
body: PostOrderReactivationBody;
|
|
4354
4354
|
};
|
|
4355
|
-
export type GetOrderReactivationResult = OrderReactivation
|
|
4355
|
+
export type GetOrderReactivationResult = Omit<OrderReactivation, "effectiveTime" | "paymentInstrumentId">;
|
|
4356
4356
|
export type GetOrderReactivationPath = {
|
|
4357
4357
|
/**
|
|
4358
4358
|
* ID of the resource.
|
|
@@ -4959,7 +4959,7 @@ export type PatchSubscriptionCancellationVariables = {
|
|
|
4959
4959
|
path: PatchSubscriptionCancellationPath;
|
|
4960
4960
|
body: PatchSubscriptionCancellationBody;
|
|
4961
4961
|
};
|
|
4962
|
-
export type GetSubscriptionReactivationCollectionResult = SubscriptionReactivation[];
|
|
4962
|
+
export type GetSubscriptionReactivationCollectionResult = Omit<SubscriptionReactivation, "effectiveTime" | "paymentInstrumentId">[];
|
|
4963
4963
|
export type GetSubscriptionReactivationCollectionQuery = {
|
|
4964
4964
|
/**
|
|
4965
4965
|
* Limit the number of collection items to be returned.
|
|
@@ -4997,7 +4997,7 @@ export type GetSubscriptionReactivationCollectionResponseHeaders = {
|
|
|
4997
4997
|
export type GetSubscriptionReactivationCollectionVariables = {
|
|
4998
4998
|
query?: GetSubscriptionReactivationCollectionQuery;
|
|
4999
4999
|
};
|
|
5000
|
-
export type PostSubscriptionReactivationResult = SubscriptionReactivation
|
|
5000
|
+
export type PostSubscriptionReactivationResult = Omit<SubscriptionReactivation, "effectiveTime" | "paymentInstrumentId">;
|
|
5001
5001
|
export type PostSubscriptionReactivationBody = Omit<SubscriptionReactivation, "id" | "cancellationId">;
|
|
5002
5002
|
export type PostSubscriptionReactivationResponseHeaders = {
|
|
5003
5003
|
location?: string;
|
|
@@ -5007,7 +5007,7 @@ export type PostSubscriptionReactivationResponseHeaders = {
|
|
|
5007
5007
|
export type PostSubscriptionReactivationVariables = {
|
|
5008
5008
|
body: PostSubscriptionReactivationBody;
|
|
5009
5009
|
};
|
|
5010
|
-
export type GetSubscriptionReactivationResult = SubscriptionReactivation
|
|
5010
|
+
export type GetSubscriptionReactivationResult = Omit<SubscriptionReactivation, "effectiveTime" | "paymentInstrumentId">;
|
|
5011
5011
|
export type GetSubscriptionReactivationPath = {
|
|
5012
5012
|
/**
|
|
5013
5013
|
* ID of the resource.
|
|
@@ -5232,7 +5232,7 @@ export type DeleteSubscriptionTimelineResponseHeaders = {
|
|
|
5232
5232
|
export type DeleteSubscriptionTimelineVariables = {
|
|
5233
5233
|
path: DeleteSubscriptionTimelinePath;
|
|
5234
5234
|
};
|
|
5235
|
-
export type GetUsageCollectionResult = Usage[];
|
|
5235
|
+
export type GetUsageCollectionResult = Omit<Usage, "acceptPartialQuantity">[];
|
|
5236
5236
|
export type GetUsageCollectionQuery = {
|
|
5237
5237
|
/**
|
|
5238
5238
|
* Criteria for filtering collection items.
|
|
@@ -5274,7 +5274,7 @@ export type GetUsageCollectionResponseHeaders = {
|
|
|
5274
5274
|
export type GetUsageCollectionVariables = {
|
|
5275
5275
|
query?: GetUsageCollectionQuery;
|
|
5276
5276
|
};
|
|
5277
|
-
export type PostUsageResult = Usage
|
|
5277
|
+
export type PostUsageResult = Omit<Usage, "acceptPartialQuantity">;
|
|
5278
5278
|
export type PostUsageBody = Omit<Usage, "id" | "invoiceId" | "invoiceItemId">;
|
|
5279
5279
|
export type PostUsageResponseHeaders = {
|
|
5280
5280
|
location?: string;
|
|
@@ -5284,7 +5284,7 @@ export type PostUsageResponseHeaders = {
|
|
|
5284
5284
|
export type PostUsageVariables = {
|
|
5285
5285
|
body: PostUsageBody;
|
|
5286
5286
|
};
|
|
5287
|
-
export type GetUsageResult = Usage
|
|
5287
|
+
export type GetUsageResult = Omit<Usage, "acceptPartialQuantity">;
|
|
5288
5288
|
export type GetUsagePath = {
|
|
5289
5289
|
/**
|
|
5290
5290
|
* ID of the resource.
|
|
@@ -5894,7 +5894,7 @@ export type PostTransactionBody = {
|
|
|
5894
5894
|
*/
|
|
5895
5895
|
redirectUrl?: string | null;
|
|
5896
5896
|
customFields?: ResourceCustomFields;
|
|
5897
|
-
riskMetadata?: RiskMetadata
|
|
5897
|
+
riskMetadata?: Omit<RiskMetadata, "isProxy" | "isVpn" | "isTor" | "isHosting" | "hostingName" | "isp" | "country" | "region" | "city" | "latitude" | "longitude" | "postalCode" | "timeZone" | "accuracyRadius" | "distance" | "hasMismatchedBillingAddressCountry" | "hasMismatchedBankCountry" | "hasMismatchedTimeZone" | "hasMismatchedHolderName" | "hasFakeName" | "isHighRiskCountry" | "paymentInstrumentVelocity" | "declinedPaymentInstrumentVelocity" | "deviceVelocity" | "ipVelocity" | "emailVelocity" | "billingAddressVelocity" | "paymentInstrumentApprovedTransactionCount" | "score">;
|
|
5898
5898
|
/**
|
|
5899
5899
|
* Specifies when the transaction is processed outside Rebilly.
|
|
5900
5900
|
*/
|
|
@@ -6047,7 +6047,7 @@ export type PostPayoutBody = {
|
|
|
6047
6047
|
*/
|
|
6048
6048
|
redirectUrl?: string | null;
|
|
6049
6049
|
customFields?: ResourceCustomFields;
|
|
6050
|
-
riskMetadata?: RiskMetadata
|
|
6050
|
+
riskMetadata?: Omit<RiskMetadata, "isProxy" | "isVpn" | "isTor" | "isHosting" | "hostingName" | "isp" | "country" | "region" | "city" | "latitude" | "longitude" | "postalCode" | "timeZone" | "accuracyRadius" | "distance" | "hasMismatchedBillingAddressCountry" | "hasMismatchedBankCountry" | "hasMismatchedTimeZone" | "hasMismatchedHolderName" | "hasFakeName" | "isHighRiskCountry" | "paymentInstrumentVelocity" | "declinedPaymentInstrumentVelocity" | "deviceVelocity" | "ipVelocity" | "emailVelocity" | "billingAddressVelocity" | "paymentInstrumentApprovedTransactionCount" | "score">;
|
|
6051
6051
|
/**
|
|
6052
6052
|
* Specifies when the transaction is processed outside Rebilly.
|
|
6053
6053
|
*/
|
|
@@ -7889,7 +7889,7 @@ export type DeleteDigitalWalletOnboardingApplePayDomainResponseHeaders = {
|
|
|
7889
7889
|
export type DeleteDigitalWalletOnboardingApplePayDomainVariables = {
|
|
7890
7890
|
path: DeleteDigitalWalletOnboardingApplePayDomainPath;
|
|
7891
7891
|
};
|
|
7892
|
-
export type GetGridSegmentResult = GridSegment
|
|
7892
|
+
export type GetGridSegmentResult = Omit<GridSegment, "userIds" | "systemId">;
|
|
7893
7893
|
export type GetGridSegmentPath = {
|
|
7894
7894
|
/**
|
|
7895
7895
|
* ID of the resource.
|
|
@@ -7906,7 +7906,7 @@ export type GetGridSegmentResponseHeaders = {
|
|
|
7906
7906
|
export type GetGridSegmentVariables = {
|
|
7907
7907
|
path: GetGridSegmentPath;
|
|
7908
7908
|
};
|
|
7909
|
-
export type PutGridSegmentResult = GridSegment
|
|
7909
|
+
export type PutGridSegmentResult = Omit<GridSegment, "userIds" | "systemId">;
|
|
7910
7910
|
export type PutGridSegmentPath = {
|
|
7911
7911
|
/**
|
|
7912
7912
|
* ID of the resource.
|
|
@@ -8033,7 +8033,7 @@ export type DeleteUserMembershipResponseHeaders = {
|
|
|
8033
8033
|
export type DeleteUserMembershipVariables = {
|
|
8034
8034
|
path: DeleteUserMembershipPath;
|
|
8035
8035
|
};
|
|
8036
|
-
export type GetOrganizationResult = Organization
|
|
8036
|
+
export type GetOrganizationResult = Omit<Organization, "website">;
|
|
8037
8037
|
export type GetOrganizationPath = {
|
|
8038
8038
|
/**
|
|
8039
8039
|
* ID of the resource.
|
|
@@ -8045,7 +8045,7 @@ export type GetOrganizationPath = {
|
|
|
8045
8045
|
export type GetOrganizationVariables = {
|
|
8046
8046
|
path: GetOrganizationPath;
|
|
8047
8047
|
};
|
|
8048
|
-
export type PatchOrganizationResult = Organization
|
|
8048
|
+
export type PatchOrganizationResult = Omit<Organization, "website">;
|
|
8049
8049
|
export type PatchOrganizationPath = {
|
|
8050
8050
|
/**
|
|
8051
8051
|
* ID of the resource.
|
|
@@ -8794,7 +8794,7 @@ export type PatchPayoutRequestBatchVariables = {
|
|
|
8794
8794
|
path: PatchPayoutRequestBatchPath;
|
|
8795
8795
|
body?: PatchPayoutRequestBatchBody;
|
|
8796
8796
|
};
|
|
8797
|
-
export type PostPreviewOrderResult = OrderPreview
|
|
8797
|
+
export type PostPreviewOrderResult = Omit<OrderPreview, "websiteId" | "items" | "couponIds" | "shipping">;
|
|
8798
8798
|
export type PostPreviewOrderBody = Omit<OrderPreview, "currency" | "lineItems" | "shippingRates" | "taxes" | "discounts" | "subtotalAmount" | "taxAmount" | "shippingAmount" | "discountsAmount" | "total" | "initialAmounts" | "recurringAmounts">;
|
|
8799
8799
|
export type PostPreviewOrderResponseHeaders = {
|
|
8800
8800
|
rateLimitLimit?: number;
|
|
@@ -10041,7 +10041,7 @@ export type PostDigitalWalletOnboardingApplePayResponseHeaders = {
|
|
|
10041
10041
|
export type PostDigitalWalletOnboardingApplePayVariables = {
|
|
10042
10042
|
body: PostDigitalWalletOnboardingApplePayBody;
|
|
10043
10043
|
};
|
|
10044
|
-
export type GetGridSegmentCollectionResult = GridSegment[];
|
|
10044
|
+
export type GetGridSegmentCollectionResult = Omit<GridSegment, "userIds" | "systemId">[];
|
|
10045
10045
|
export type GetGridSegmentCollectionQuery = {
|
|
10046
10046
|
/**
|
|
10047
10047
|
* Limit the number of collection items to be returned.
|
|
@@ -10083,7 +10083,7 @@ export type GetGridSegmentCollectionResponseHeaders = {
|
|
|
10083
10083
|
export type GetGridSegmentCollectionVariables = {
|
|
10084
10084
|
query?: GetGridSegmentCollectionQuery;
|
|
10085
10085
|
};
|
|
10086
|
-
export type PostGridSegmentResult = GridSegment
|
|
10086
|
+
export type PostGridSegmentResult = Omit<GridSegment, "userIds" | "systemId">;
|
|
10087
10087
|
export type PostGridSegmentBody = Omit<GridSegment, "id" | "owner" | "users">;
|
|
10088
10088
|
export type PostGridSegmentResponseHeaders = {
|
|
10089
10089
|
location?: string;
|
|
@@ -10174,7 +10174,7 @@ export type PostListResponseHeaders = {
|
|
|
10174
10174
|
export type PostListVariables = {
|
|
10175
10175
|
body?: PostListBody;
|
|
10176
10176
|
};
|
|
10177
|
-
export type GetOrganizationCollectionResult = Organization[];
|
|
10177
|
+
export type GetOrganizationCollectionResult = Omit<Organization, "website">[];
|
|
10178
10178
|
export type GetOrganizationCollectionQuery = {
|
|
10179
10179
|
/**
|
|
10180
10180
|
* Limit the number of collection items to be returned.
|
|
@@ -10216,7 +10216,7 @@ export type GetOrganizationCollectionResponseHeaders = {
|
|
|
10216
10216
|
export type GetOrganizationCollectionVariables = {
|
|
10217
10217
|
query?: GetOrganizationCollectionQuery;
|
|
10218
10218
|
};
|
|
10219
|
-
export type PostOrganizationResult = Organization
|
|
10219
|
+
export type PostOrganizationResult = Omit<Organization, "website">;
|
|
10220
10220
|
export type PostOrganizationBody = Organization & unknown;
|
|
10221
10221
|
export type PostOrganizationResponseHeaders = {
|
|
10222
10222
|
location?: string;
|
|
@@ -34353,7 +34353,7 @@ export declare const GetAmlCheckCollection: (<Init extends import('./core-client
|
|
|
34353
34353
|
}, Init>>) & import('./core-client.ts').OperationMethodIdentity, PostAuthenticationTokenExchange: (<Init extends import('./core-client.ts').RequestOptions | undefined = undefined>(args: {
|
|
34354
34354
|
path: PostAuthenticationTokenExchangePath;
|
|
34355
34355
|
body: PostAuthenticationTokenExchangeBody;
|
|
34356
|
-
}, init?: Init | undefined) => Promise<import('./core-client.ts').EnvelopeResult<
|
|
34356
|
+
}, init?: Init | undefined) => Promise<import('./core-client.ts').EnvelopeResult<PostAuthenticationTokenExchangeResult, {
|
|
34357
34357
|
location?: string;
|
|
34358
34358
|
rateLimitLimit?: number;
|
|
34359
34359
|
rateLimitRemaining?: number;
|
|
@@ -34434,16 +34434,16 @@ export declare const GetAmlCheckCollection: (<Init extends import('./core-client
|
|
|
34434
34434
|
paginationOffset?: number;
|
|
34435
34435
|
}, Init>>) & import('./core-client.ts').OperationMethodIdentity, PostCredential: (<Init extends import('./core-client.ts').RequestOptions | undefined = undefined>(args: {
|
|
34436
34436
|
body: PostCredentialBody;
|
|
34437
|
-
}, init?: Init | undefined) => Promise<import('./core-client.ts').EnvelopeResult<
|
|
34437
|
+
}, init?: Init | undefined) => Promise<import('./core-client.ts').EnvelopeResult<PostCredentialResult, {
|
|
34438
34438
|
location?: string;
|
|
34439
34439
|
rateLimitLimit?: number;
|
|
34440
34440
|
rateLimitRemaining?: number;
|
|
34441
34441
|
}, Init>>) & import('./core-client.ts').OperationMethodIdentity, GetCredential: (<Init extends import('./core-client.ts').RequestOptions | undefined = undefined>(args: {
|
|
34442
34442
|
path: GetCredentialPath;
|
|
34443
|
-
}, init?: Init | undefined) => Promise<import('./core-client.ts').EnvelopeResult<
|
|
34443
|
+
}, init?: Init | undefined) => Promise<import('./core-client.ts').EnvelopeResult<GetCredentialResult, Record<string, never>, Init>>) & import('./core-client.ts').OperationMethodIdentity, PutCredential: (<Init extends import('./core-client.ts').RequestOptions | undefined = undefined>(args: {
|
|
34444
34444
|
path: PutCredentialPath;
|
|
34445
34445
|
body: PutCredentialBody;
|
|
34446
|
-
}, init?: Init | undefined) => Promise<import('./core-client.ts').EnvelopeResult<
|
|
34446
|
+
}, init?: Init | undefined) => Promise<import('./core-client.ts').EnvelopeResult<PutCredentialResult, {
|
|
34447
34447
|
rateLimitLimit?: number;
|
|
34448
34448
|
rateLimitRemaining?: number;
|
|
34449
34449
|
}, Init>>) & import('./core-client.ts').OperationMethodIdentity, DeleteCredential: (<Init extends import('./core-client.ts').RequestOptions | undefined = undefined>(args: {
|
|
@@ -34470,17 +34470,17 @@ export declare const GetAmlCheckCollection: (<Init extends import('./core-client
|
|
|
34470
34470
|
paginationOffset?: number;
|
|
34471
34471
|
}, Init>>) & import('./core-client.ts').OperationMethodIdentity, PostCustomer: (<Init extends import('./core-client.ts').RequestOptions | undefined = undefined>(args: {
|
|
34472
34472
|
body: PostCustomerBody;
|
|
34473
|
-
}, init?: Init | undefined) => Promise<import('./core-client.ts').EnvelopeResult<
|
|
34473
|
+
}, init?: Init | undefined) => Promise<import('./core-client.ts').EnvelopeResult<PostCustomerResult, {
|
|
34474
34474
|
location?: string;
|
|
34475
34475
|
rateLimitLimit?: number;
|
|
34476
34476
|
rateLimitRemaining?: number;
|
|
34477
34477
|
}, Init>>) & import('./core-client.ts').OperationMethodIdentity, GetCustomer: (<Init extends import('./core-client.ts').RequestOptions | undefined = undefined>(args: {
|
|
34478
34478
|
path: GetCustomerPath;
|
|
34479
34479
|
query?: GetCustomerQuery;
|
|
34480
|
-
}, init?: Init | undefined) => Promise<import('./core-client.ts').EnvelopeResult<
|
|
34480
|
+
}, init?: Init | undefined) => Promise<import('./core-client.ts').EnvelopeResult<GetCustomerResult, Record<string, never>, Init>>) & import('./core-client.ts').OperationMethodIdentity, PutCustomer: (<Init extends import('./core-client.ts').RequestOptions | undefined = undefined>(args: {
|
|
34481
34481
|
path: PutCustomerPath;
|
|
34482
34482
|
body: PutCustomerBody;
|
|
34483
|
-
}, init?: Init | undefined) => Promise<import('./core-client.ts').EnvelopeResult<
|
|
34483
|
+
}, init?: Init | undefined) => Promise<import('./core-client.ts').EnvelopeResult<PutCustomerResult, Record<string, never>, Init>>) & import('./core-client.ts').OperationMethodIdentity, DeleteCustomer: (<Init extends import('./core-client.ts').RequestOptions | undefined = undefined>(args: {
|
|
34484
34484
|
path: DeleteCustomerPath;
|
|
34485
34485
|
query: DeleteCustomerQuery;
|
|
34486
34486
|
}, init?: Init | undefined) => Promise<import('./core-client.ts').EnvelopeResult<void, {
|
|
@@ -34528,13 +34528,13 @@ export declare const GetAmlCheckCollection: (<Init extends import('./core-client
|
|
|
34528
34528
|
}, Init>>) & import('./core-client.ts').OperationMethodIdentity, PostCustomerTimeline: (<Init extends import('./core-client.ts').RequestOptions | undefined = undefined>(args: {
|
|
34529
34529
|
path: PostCustomerTimelinePath;
|
|
34530
34530
|
body: PostCustomerTimelineBody;
|
|
34531
|
-
}, init?: Init | undefined) => Promise<import('./core-client.ts').EnvelopeResult<
|
|
34531
|
+
}, init?: Init | undefined) => Promise<import('./core-client.ts').EnvelopeResult<PostCustomerTimelineResult, {
|
|
34532
34532
|
location?: string;
|
|
34533
34533
|
rateLimitLimit?: number;
|
|
34534
34534
|
rateLimitRemaining?: number;
|
|
34535
34535
|
}, Init>>) & import('./core-client.ts').OperationMethodIdentity, GetCustomerTimeline: (<Init extends import('./core-client.ts').RequestOptions | undefined = undefined>(args: {
|
|
34536
34536
|
path: GetCustomerTimelinePath;
|
|
34537
|
-
}, init?: Init | undefined) => Promise<import('./core-client.ts').EnvelopeResult<
|
|
34537
|
+
}, init?: Init | undefined) => Promise<import('./core-client.ts').EnvelopeResult<GetCustomerTimelineResult, Record<string, never>, Init>>) & import('./core-client.ts').OperationMethodIdentity, DeleteCustomerTimeline: (<Init extends import('./core-client.ts').RequestOptions | undefined = undefined>(args: {
|
|
34538
34538
|
path: DeleteCustomerTimelinePath;
|
|
34539
34539
|
}, init?: Init | undefined) => Promise<import('./core-client.ts').EnvelopeResult<void, {
|
|
34540
34540
|
rateLimitLimit?: number;
|
|
@@ -35320,13 +35320,13 @@ export declare const GetAmlCheckCollection: (<Init extends import('./core-client
|
|
|
35320
35320
|
paginationOffset?: number;
|
|
35321
35321
|
}, Init>>) & import('./core-client.ts').OperationMethodIdentity, PostOrderReactivation: (<Init extends import('./core-client.ts').RequestOptions | undefined = undefined>(args: {
|
|
35322
35322
|
body: PostOrderReactivationBody;
|
|
35323
|
-
}, init?: Init | undefined) => Promise<import('./core-client.ts').EnvelopeResult<
|
|
35323
|
+
}, init?: Init | undefined) => Promise<import('./core-client.ts').EnvelopeResult<PostOrderReactivationResult, {
|
|
35324
35324
|
location?: string;
|
|
35325
35325
|
rateLimitLimit?: number;
|
|
35326
35326
|
rateLimitRemaining?: number;
|
|
35327
35327
|
}, Init>>) & import('./core-client.ts').OperationMethodIdentity, GetOrderReactivation: (<Init extends import('./core-client.ts').RequestOptions | undefined = undefined>(args: {
|
|
35328
35328
|
path: GetOrderReactivationPath;
|
|
35329
|
-
}, init?: Init | undefined) => Promise<import('./core-client.ts').EnvelopeResult<
|
|
35329
|
+
}, init?: Init | undefined) => Promise<import('./core-client.ts').EnvelopeResult<GetOrderReactivationResult, Record<string, never>, Init>>) & import('./core-client.ts').OperationMethodIdentity, GetSubscriptionCollection: (<Init extends import('./core-client.ts').RequestOptions | undefined = undefined>(args?: {
|
|
35330
35330
|
query?: GetSubscriptionCollectionQuery;
|
|
35331
35331
|
} | undefined, init?: Init | undefined) => Promise<import('./core-client.ts').EnvelopeResult<GetSubscriptionCollectionResult, {
|
|
35332
35332
|
paginationTotal?: number;
|
|
@@ -35472,13 +35472,13 @@ export declare const GetAmlCheckCollection: (<Init extends import('./core-client
|
|
|
35472
35472
|
paginationOffset?: number;
|
|
35473
35473
|
}, Init>>) & import('./core-client.ts').OperationMethodIdentity, PostSubscriptionReactivation: (<Init extends import('./core-client.ts').RequestOptions | undefined = undefined>(args: {
|
|
35474
35474
|
body: PostSubscriptionReactivationBody;
|
|
35475
|
-
}, init?: Init | undefined) => Promise<import('./core-client.ts').EnvelopeResult<
|
|
35475
|
+
}, init?: Init | undefined) => Promise<import('./core-client.ts').EnvelopeResult<PostSubscriptionReactivationResult, {
|
|
35476
35476
|
location?: string;
|
|
35477
35477
|
rateLimitLimit?: number;
|
|
35478
35478
|
rateLimitRemaining?: number;
|
|
35479
35479
|
}, Init>>) & import('./core-client.ts').OperationMethodIdentity, GetSubscriptionReactivation: (<Init extends import('./core-client.ts').RequestOptions | undefined = undefined>(args: {
|
|
35480
35480
|
path: GetSubscriptionReactivationPath;
|
|
35481
|
-
}, init?: Init | undefined) => Promise<import('./core-client.ts').EnvelopeResult<
|
|
35481
|
+
}, init?: Init | undefined) => Promise<import('./core-client.ts').EnvelopeResult<GetSubscriptionReactivationResult, Record<string, never>, Init>>) & import('./core-client.ts').OperationMethodIdentity, GetSubscriptionUpcomingInvoiceCollection: (<Init extends import('./core-client.ts').RequestOptions | undefined = undefined>(args: {
|
|
35482
35482
|
path: GetSubscriptionUpcomingInvoiceCollectionPath;
|
|
35483
35483
|
query?: GetSubscriptionUpcomingInvoiceCollectionQuery;
|
|
35484
35484
|
}, init?: Init | undefined) => Promise<import('./core-client.ts').EnvelopeResult<GetSubscriptionUpcomingInvoiceCollectionResult, Record<string, never>, Init>>) & import('./core-client.ts').OperationMethodIdentity, GetSubscriptionUpcomingInvoice: (<Init extends import('./core-client.ts').RequestOptions | undefined = undefined>(args: {
|
|
@@ -35534,13 +35534,13 @@ export declare const GetAmlCheckCollection: (<Init extends import('./core-client
|
|
|
35534
35534
|
paginationOffset?: number;
|
|
35535
35535
|
}, Init>>) & import('./core-client.ts').OperationMethodIdentity, PostUsage: (<Init extends import('./core-client.ts').RequestOptions | undefined = undefined>(args: {
|
|
35536
35536
|
body: PostUsageBody;
|
|
35537
|
-
}, init?: Init | undefined) => Promise<import('./core-client.ts').EnvelopeResult<
|
|
35537
|
+
}, init?: Init | undefined) => Promise<import('./core-client.ts').EnvelopeResult<PostUsageResult, {
|
|
35538
35538
|
location?: string;
|
|
35539
35539
|
rateLimitLimit?: number;
|
|
35540
35540
|
rateLimitRemaining?: number;
|
|
35541
35541
|
}, Init>>) & import('./core-client.ts').OperationMethodIdentity, GetUsage: (<Init extends import('./core-client.ts').RequestOptions | undefined = undefined>(args: {
|
|
35542
35542
|
path: GetUsagePath;
|
|
35543
|
-
}, init?: Init | undefined) => Promise<import('./core-client.ts').EnvelopeResult<
|
|
35543
|
+
}, init?: Init | undefined) => Promise<import('./core-client.ts').EnvelopeResult<GetUsageResult, Record<string, never>, Init>>) & import('./core-client.ts').OperationMethodIdentity, DeleteUsage: (<Init extends import('./core-client.ts').RequestOptions | undefined = undefined>(args: {
|
|
35544
35544
|
path: DeleteUsagePath;
|
|
35545
35545
|
}, init?: Init | undefined) => Promise<import('./core-client.ts').EnvelopeResult<void, {
|
|
35546
35546
|
rateLimitLimit?: number;
|
|
@@ -36099,14 +36099,14 @@ export declare const GetAmlCheckCollection: (<Init extends import('./core-client
|
|
|
36099
36099
|
rateLimitRemaining?: number;
|
|
36100
36100
|
}, Init>>) & import('./core-client.ts').OperationMethodIdentity, GetGridSegment: (<Init extends import('./core-client.ts').RequestOptions | undefined = undefined>(args: {
|
|
36101
36101
|
path: GetGridSegmentPath;
|
|
36102
|
-
}, init?: Init | undefined) => Promise<import('./core-client.ts').EnvelopeResult<
|
|
36102
|
+
}, init?: Init | undefined) => Promise<import('./core-client.ts').EnvelopeResult<GetGridSegmentResult, {
|
|
36103
36103
|
paginationTotal?: number;
|
|
36104
36104
|
paginationLimit?: number;
|
|
36105
36105
|
paginationOffset?: number;
|
|
36106
36106
|
}, Init>>) & import('./core-client.ts').OperationMethodIdentity, PutGridSegment: (<Init extends import('./core-client.ts').RequestOptions | undefined = undefined>(args: {
|
|
36107
36107
|
path: PutGridSegmentPath;
|
|
36108
36108
|
body?: PutGridSegmentBody;
|
|
36109
|
-
}, init?: Init | undefined) => Promise<import('./core-client.ts').EnvelopeResult<
|
|
36109
|
+
}, init?: Init | undefined) => Promise<import('./core-client.ts').EnvelopeResult<PutGridSegmentResult, {
|
|
36110
36110
|
rateLimitLimit?: number;
|
|
36111
36111
|
rateLimitRemaining?: number;
|
|
36112
36112
|
}, Init>>) & import('./core-client.ts').OperationMethodIdentity, DeleteGridSegment: (<Init extends import('./core-client.ts').RequestOptions | undefined = undefined>(args: {
|
|
@@ -36138,10 +36138,10 @@ export declare const GetAmlCheckCollection: (<Init extends import('./core-client
|
|
|
36138
36138
|
rateLimitRemaining?: number;
|
|
36139
36139
|
}, Init>>) & import('./core-client.ts').OperationMethodIdentity, GetOrganization: (<Init extends import('./core-client.ts').RequestOptions | undefined = undefined>(args: {
|
|
36140
36140
|
path: GetOrganizationPath;
|
|
36141
|
-
}, init?: Init | undefined) => Promise<import('./core-client.ts').EnvelopeResult<
|
|
36141
|
+
}, init?: Init | undefined) => Promise<import('./core-client.ts').EnvelopeResult<GetOrganizationResult, Record<string, never>, Init>>) & import('./core-client.ts').OperationMethodIdentity, PatchOrganization: (<Init extends import('./core-client.ts').RequestOptions | undefined = undefined>(args: {
|
|
36142
36142
|
path: PatchOrganizationPath;
|
|
36143
36143
|
body?: PatchOrganizationBody;
|
|
36144
|
-
}, init?: Init | undefined) => Promise<import('./core-client.ts').EnvelopeResult<
|
|
36144
|
+
}, init?: Init | undefined) => Promise<import('./core-client.ts').EnvelopeResult<PatchOrganizationResult, {
|
|
36145
36145
|
rateLimitLimit?: number;
|
|
36146
36146
|
rateLimitRemaining?: number;
|
|
36147
36147
|
}, Init>>) & import('./core-client.ts').OperationMethodIdentity, GetPaymentMethodCollection: (<Init extends import('./core-client.ts').RequestOptions | undefined = undefined>(args?: {
|
|
@@ -36270,7 +36270,7 @@ export declare const GetAmlCheckCollection: (<Init extends import('./core-client
|
|
|
36270
36270
|
rateLimitRemaining?: number;
|
|
36271
36271
|
}, Init>>) & import('./core-client.ts').OperationMethodIdentity, PostPreviewOrder: (<Init extends import('./core-client.ts').RequestOptions | undefined = undefined>(args?: {
|
|
36272
36272
|
body?: PostPreviewOrderBody;
|
|
36273
|
-
} | undefined, init?: Init | undefined) => Promise<import('./core-client.ts').EnvelopeResult<
|
|
36273
|
+
} | undefined, init?: Init | undefined) => Promise<import('./core-client.ts').EnvelopeResult<PostPreviewOrderResult, {
|
|
36274
36274
|
rateLimitLimit?: number;
|
|
36275
36275
|
rateLimitRemaining?: number;
|
|
36276
36276
|
}, Init>>) & import('./core-client.ts').OperationMethodIdentity, GetRole: (<Init extends import('./core-client.ts').RequestOptions | undefined = undefined>(args: {
|
|
@@ -36564,7 +36564,7 @@ export declare const GetAmlCheckCollection: (<Init extends import('./core-client
|
|
|
36564
36564
|
paginationOffset?: number;
|
|
36565
36565
|
}, Init>>) & import('./core-client.ts').OperationMethodIdentity, PostGridSegment: (<Init extends import('./core-client.ts').RequestOptions | undefined = undefined>(args: {
|
|
36566
36566
|
body: PostGridSegmentBody;
|
|
36567
|
-
}, init?: Init | undefined) => Promise<import('./core-client.ts').EnvelopeResult<
|
|
36567
|
+
}, init?: Init | undefined) => Promise<import('./core-client.ts').EnvelopeResult<PostGridSegmentResult, {
|
|
36568
36568
|
location?: string;
|
|
36569
36569
|
rateLimitLimit?: number;
|
|
36570
36570
|
rateLimitRemaining?: number;
|
|
@@ -36594,7 +36594,7 @@ export declare const GetAmlCheckCollection: (<Init extends import('./core-client
|
|
|
36594
36594
|
paginationOffset?: number;
|
|
36595
36595
|
}, Init>>) & import('./core-client.ts').OperationMethodIdentity, PostOrganization: (<Init extends import('./core-client.ts').RequestOptions | undefined = undefined>(args?: {
|
|
36596
36596
|
body?: PostOrganizationBody;
|
|
36597
|
-
} | undefined, init?: Init | undefined) => Promise<import('./core-client.ts').EnvelopeResult<
|
|
36597
|
+
} | undefined, init?: Init | undefined) => Promise<import('./core-client.ts').EnvelopeResult<PostOrganizationResult, {
|
|
36598
36598
|
location?: string;
|
|
36599
36599
|
rateLimitLimit?: number;
|
|
36600
36600
|
rateLimitRemaining?: number;
|
package/dist/core-client.js
CHANGED
|
@@ -16,11 +16,29 @@ import { createClient } from "./runtime/factory.js";
|
|
|
16
16
|
* Every action in the [Rebilly UI](https://app.rebilly.com) is supported by an API which is documented and available for use, so that you may automate any necessary workflows or processes.
|
|
17
17
|
* This API reference documentation contains the most commonly integrated resources.
|
|
18
18
|
*
|
|
19
|
+
* # Base URL
|
|
20
|
+
*
|
|
21
|
+
* Each environment has its own base URL.
|
|
22
|
+
* The organization ID is part of the path.
|
|
23
|
+
*
|
|
24
|
+
* | Environment | Base URL |
|
|
25
|
+
* | --- | --- |
|
|
26
|
+
* | Sandbox | `https://api-sandbox.rebilly.com/organizations/{organizationId}` |
|
|
27
|
+
* | Live | `https://api.rebilly.com/organizations/{organizationId}` |
|
|
28
|
+
*
|
|
29
|
+
* The sandbox and live environments do not share data, API keys, or configuration.
|
|
30
|
+
* For more information, see [Environments](/docs/tutorials/environments/).
|
|
31
|
+
*
|
|
32
|
+
* To obtain your organization ID, see [Obtain your organization ID and website ID](/docs/settings/organizations-and-websites/#obtain-your-organization-id-and-website-id).
|
|
33
|
+
*
|
|
19
34
|
* # Authentication
|
|
20
35
|
*
|
|
21
36
|
* Rebilly offers four forms of authentication: secret key, publishable key, JSON Web Tokens, and public signature key.
|
|
22
37
|
*
|
|
23
38
|
* - Secret API key: Use to make requests from the server side.
|
|
39
|
+
* Send the key in the `REB-APIKEY` header.
|
|
40
|
+
* Sandbox keys start with `sk_sandbox_` and live keys start with `sk_live_`.
|
|
41
|
+
* To obtain a key, see [Obtain a secret key](/docs/dev-docs/api-keys/#obtain-a-secret-key).
|
|
24
42
|
* Never share these keys.
|
|
25
43
|
* Keep them guarded and secure.
|
|
26
44
|
* - Publishable API key: Use in your client-side code to tokenize payment information.
|
|
@@ -79,6 +97,32 @@ import { createClient } from "./runtime/factory.js";
|
|
|
79
97
|
*
|
|
80
98
|
* To create and manage API keys, see [API keys](https://www.rebilly.com/docs/dev-docs/api-keys/).
|
|
81
99
|
*
|
|
100
|
+
* ## Send your first request
|
|
101
|
+
*
|
|
102
|
+
* This cURL request lists the five most recent customers in your sandbox organization.
|
|
103
|
+
*
|
|
104
|
+
* 1. In a terminal, paste the following command:
|
|
105
|
+
*
|
|
106
|
+
* ```bash
|
|
107
|
+
* curl 'https://api-sandbox.rebilly.com/organizations/your_organization_id/customers?limit=5&sort=-createdTime' \
|
|
108
|
+
* -H 'REB-APIKEY: your_secret_API_key'
|
|
109
|
+
* ```
|
|
110
|
+
*
|
|
111
|
+
* 1. Replace `your_organization_id` with your organization ID.
|
|
112
|
+
* For more information, see [Obtain your organization ID and website ID](/docs/settings/organizations-and-websites/#obtain-your-organization-id-and-website-id).
|
|
113
|
+
* 1. Replace `your_secret_API_key` with a sandbox secret key.
|
|
114
|
+
* For more information, see [Obtain a secret key](/docs/dev-docs/api-keys/#obtain-a-secret-key).
|
|
115
|
+
* 1. Run the command.
|
|
116
|
+
*
|
|
117
|
+
* In the response, a `200` status code indicates a successful request.
|
|
118
|
+
* The response body contains a JSON array of customers.
|
|
119
|
+
* An empty array means the request succeeded and the organization has no customers yet.
|
|
120
|
+
*
|
|
121
|
+
* List operations accept `limit`, `offset`, `filter`, and `sort` query parameters.
|
|
122
|
+
* For more information on filters, see [Search filters](/docs/dev-docs/search-filters/).
|
|
123
|
+
*
|
|
124
|
+
* To try operations in the browser, use the interactive examples in [Set up your environment](/docs/dev-docs/set-up-environment/#add-data-to-your-rebilly-environment).
|
|
125
|
+
*
|
|
82
126
|
* # Rate limits
|
|
83
127
|
*
|
|
84
128
|
* Rate limits apply to the organization, not to the API key.
|
|
@@ -12,11 +12,29 @@
|
|
|
12
12
|
* Every action in the [Rebilly UI](https://app.rebilly.com) is supported by an API which is documented and available for use, so that you may automate any necessary workflows or processes.
|
|
13
13
|
* This API reference documentation contains the most commonly integrated resources.
|
|
14
14
|
*
|
|
15
|
+
* # Base URL
|
|
16
|
+
*
|
|
17
|
+
* Each environment has its own base URL.
|
|
18
|
+
* The organization ID is part of the path.
|
|
19
|
+
*
|
|
20
|
+
* | Environment | Base URL |
|
|
21
|
+
* | --- | --- |
|
|
22
|
+
* | Sandbox | `https://api-sandbox.rebilly.com/organizations/{organizationId}` |
|
|
23
|
+
* | Live | `https://api.rebilly.com/organizations/{organizationId}` |
|
|
24
|
+
*
|
|
25
|
+
* The sandbox and live environments do not share data, API keys, or configuration.
|
|
26
|
+
* For more information, see [Environments](/docs/tutorials/environments/).
|
|
27
|
+
*
|
|
28
|
+
* To obtain your organization ID, see [Obtain your organization ID and website ID](/docs/settings/organizations-and-websites/#obtain-your-organization-id-and-website-id).
|
|
29
|
+
*
|
|
15
30
|
* # Authentication
|
|
16
31
|
*
|
|
17
32
|
* Rebilly offers four forms of authentication: secret key, publishable key, JSON Web Tokens, and public signature key.
|
|
18
33
|
*
|
|
19
34
|
* - Secret API key: Use to make requests from the server side.
|
|
35
|
+
* Send the key in the `REB-APIKEY` header.
|
|
36
|
+
* Sandbox keys start with `sk_sandbox_` and live keys start with `sk_live_`.
|
|
37
|
+
* To obtain a key, see [Obtain a secret key](/docs/dev-docs/api-keys/#obtain-a-secret-key).
|
|
20
38
|
* Never share these keys.
|
|
21
39
|
* Keep them guarded and secure.
|
|
22
40
|
* - Publishable API key: Use in your client-side code to tokenize payment information.
|
|
@@ -75,6 +93,32 @@
|
|
|
75
93
|
*
|
|
76
94
|
* To create and manage API keys, see [API keys](https://www.rebilly.com/docs/dev-docs/api-keys/).
|
|
77
95
|
*
|
|
96
|
+
* ## Send your first request
|
|
97
|
+
*
|
|
98
|
+
* This cURL request lists the five most recent customers in your sandbox organization.
|
|
99
|
+
*
|
|
100
|
+
* 1. In a terminal, paste the following command:
|
|
101
|
+
*
|
|
102
|
+
* ```bash
|
|
103
|
+
* curl 'https://api-sandbox.rebilly.com/organizations/your_organization_id/customers?limit=5&sort=-createdTime' \
|
|
104
|
+
* -H 'REB-APIKEY: your_secret_API_key'
|
|
105
|
+
* ```
|
|
106
|
+
*
|
|
107
|
+
* 1. Replace `your_organization_id` with your organization ID.
|
|
108
|
+
* For more information, see [Obtain your organization ID and website ID](/docs/settings/organizations-and-websites/#obtain-your-organization-id-and-website-id).
|
|
109
|
+
* 1. Replace `your_secret_API_key` with a sandbox secret key.
|
|
110
|
+
* For more information, see [Obtain a secret key](/docs/dev-docs/api-keys/#obtain-a-secret-key).
|
|
111
|
+
* 1. Run the command.
|
|
112
|
+
*
|
|
113
|
+
* In the response, a `200` status code indicates a successful request.
|
|
114
|
+
* The response body contains a JSON array of customers.
|
|
115
|
+
* An empty array means the request succeeded and the organization has no customers yet.
|
|
116
|
+
*
|
|
117
|
+
* List operations accept `limit`, `offset`, `filter`, and `sort` query parameters.
|
|
118
|
+
* For more information on filters, see [Search filters](/docs/dev-docs/search-filters/).
|
|
119
|
+
*
|
|
120
|
+
* To try operations in the browser, use the interactive examples in [Set up your environment](/docs/dev-docs/set-up-environment/#add-data-to-your-rebilly-environment).
|
|
121
|
+
*
|
|
78
122
|
* # Rate limits
|
|
79
123
|
*
|
|
80
124
|
* Rate limits apply to the organization, not to the API key.
|
|
@@ -95,7 +95,7 @@ function queryStyles(op) {
|
|
|
95
95
|
styles[param.name] = {
|
|
96
96
|
style: param.style ?? "form",
|
|
97
97
|
explode: param.explode ?? true,
|
|
98
|
-
allowReserved: param.allowReserved
|
|
98
|
+
...param.allowReserved === void 0 ? {} : { allowReserved: param.allowReserved }
|
|
99
99
|
};
|
|
100
100
|
}
|
|
101
101
|
return styles;
|
package/dist/runtime/send.js
CHANGED
|
@@ -23,9 +23,9 @@ function toHeaderRecord(headers) {
|
|
|
23
23
|
*/
|
|
24
24
|
function middlewareChain(config) {
|
|
25
25
|
return [...config.onRequest || config.onResponse || config.onError ? [{
|
|
26
|
-
onRequest: config.onRequest,
|
|
27
|
-
onResponse: config.onResponse,
|
|
28
|
-
onError: config.onError
|
|
26
|
+
...config.onRequest ? { onRequest: config.onRequest } : {},
|
|
27
|
+
...config.onResponse ? { onResponse: config.onResponse } : {},
|
|
28
|
+
...config.onError ? { onError: config.onError } : {}
|
|
29
29
|
}] : [], ...config.middleware ?? []];
|
|
30
30
|
}
|
|
31
31
|
/**
|
|
@@ -136,10 +136,10 @@ async function send(config, op, url, init, body, bodySpec, caps, accept = "appli
|
|
|
136
136
|
response = await doFetch(context.url, {
|
|
137
137
|
...fetchInit,
|
|
138
138
|
...isStream ? { duplex: "half" } : {},
|
|
139
|
-
signal: attemptSignal,
|
|
139
|
+
signal: attemptSignal ?? null,
|
|
140
140
|
method: context.method,
|
|
141
141
|
headers: context.headers,
|
|
142
|
-
body: payload
|
|
142
|
+
body: payload ?? null
|
|
143
143
|
});
|
|
144
144
|
} catch (error) {
|
|
145
145
|
const timedOut = timeout !== void 0 && budget?.aborted && !signal?.aborted;
|
|
@@ -156,7 +156,7 @@ async function send(config, op, url, init, body, bodySpec, caps, accept = "appli
|
|
|
156
156
|
}
|
|
157
157
|
lastResponse = response;
|
|
158
158
|
for (let i = middleware.length - 1; i >= 0; i--) {
|
|
159
|
-
const onResponse = middleware[i]
|
|
159
|
+
const onResponse = middleware[i]?.onResponse;
|
|
160
160
|
if (onResponse) {
|
|
161
161
|
const replaced = await onResponse(response, context);
|
|
162
162
|
if (replaced && replaced !== response) {
|
package/dist/runtime/types.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Cashier, ContactObject, CurrencyCode, CustomField, DepositRequest, DepositStrategy, LeadSourceData, PaymentInstructionsInstrument, PaymentInstructionsToken, PostSubscription, PostSubscriptionItemsChange, PostSubscriptionReactivation, ReadyToPay, ReadyToPayMethods, ReadyToPayout, ReadyToPayoutMethods, ResourceCustomFields, RiskMetadata, StorefrontAccount, StorefrontBillingPortal, StorefrontCashier, StorefrontChangeQuote, StorefrontCheckoutForm, StorefrontCustomerJWT, StorefrontInvoice, StorefrontKycDocument, StorefrontKycLivenessSession, StorefrontKycRequest, StorefrontOrder, StorefrontOrderChange, StorefrontOrderPreview, StorefrontPaymentInstrument, StorefrontPayoutRequest, StorefrontPlan, StorefrontProduct, StorefrontPurchase, StorefrontQuote, StorefrontReactivationQuote, StorefrontTransaction, StorefrontTransactionRedirectUrl, StorefrontUpcomingInvoice, Website, WebsiteId } from './storefront-client.schemas.ts';
|
|
2
2
|
export * from './runtime/factory.ts';
|
|
3
3
|
export * from './storefront-client.schemas.ts';
|
|
4
|
-
export type StorefrontGetAccountResult = StorefrontAccount
|
|
4
|
+
export type StorefrontGetAccountResult = Omit<StorefrontAccount, "paymentToken" | "defaultPaymentInstrumentId">;
|
|
5
5
|
export type StorefrontGetAccountQuery = {
|
|
6
6
|
/**
|
|
7
7
|
* Expands a request to include embedded objects within the `_embedded`
|
|
@@ -15,7 +15,7 @@ export type StorefrontGetAccountQuery = {
|
|
|
15
15
|
export type StorefrontGetAccountVariables = {
|
|
16
16
|
query?: StorefrontGetAccountQuery;
|
|
17
17
|
};
|
|
18
|
-
export type StorefrontPatchAccountResult = StorefrontAccount
|
|
18
|
+
export type StorefrontPatchAccountResult = Omit<StorefrontAccount, "paymentToken" | "defaultPaymentInstrumentId">;
|
|
19
19
|
export type StorefrontPatchAccountBody = Omit<StorefrontAccount, "id" | "websiteId" | "username" | "defaultPaymentInstrument" | "isVerified" | "_embedded">;
|
|
20
20
|
export type StorefrontPatchAccountResponseHeaders = {
|
|
21
21
|
rateLimitLimit?: number;
|
|
@@ -38,7 +38,7 @@ export type StorefrontPostForgotPasswordResponseHeaders = {
|
|
|
38
38
|
export type StorefrontPostForgotPasswordVariables = {
|
|
39
39
|
body?: StorefrontPostForgotPasswordBody;
|
|
40
40
|
};
|
|
41
|
-
export type StorefrontPatchAccountPasswordResult = StorefrontAccount
|
|
41
|
+
export type StorefrontPatchAccountPasswordResult = Omit<StorefrontAccount, "paymentToken" | "defaultPaymentInstrumentId">;
|
|
42
42
|
export type StorefrontPatchAccountPasswordBody = {
|
|
43
43
|
/**
|
|
44
44
|
* Current password.
|
|
@@ -74,7 +74,7 @@ export type StorefrontPostAccountResendVerificationResponseHeaders = {
|
|
|
74
74
|
export type StorefrontPostAccountResendVerificationVariables = {
|
|
75
75
|
body?: StorefrontPostAccountResendVerificationBody;
|
|
76
76
|
};
|
|
77
|
-
export type StorefrontPostResetPasswordResult = StorefrontAccount
|
|
77
|
+
export type StorefrontPostResetPasswordResult = Omit<StorefrontAccount, "paymentToken" | "defaultPaymentInstrumentId">;
|
|
78
78
|
export type StorefrontPostResetPasswordPath = {
|
|
79
79
|
/**
|
|
80
80
|
* Token string.
|
|
@@ -191,7 +191,7 @@ export type StorefrontPostDepositBody = {
|
|
|
191
191
|
* ID of the payment token.
|
|
192
192
|
*/
|
|
193
193
|
token?: string | null;
|
|
194
|
-
riskMetadata?: RiskMetadata
|
|
194
|
+
riskMetadata?: Omit<RiskMetadata, "isProxy" | "isVpn" | "isTor" | "isHosting" | "hostingName" | "isp" | "country" | "region" | "city" | "latitude" | "longitude" | "postalCode" | "timeZone" | "accuracyRadius" | "distance" | "hasMismatchedBillingAddressCountry" | "hasMismatchedBankCountry" | "hasMismatchedTimeZone" | "hasMismatchedHolderName" | "hasFakeName" | "isHighRiskCountry" | "paymentInstrumentVelocity" | "declinedPaymentInstrumentVelocity" | "deviceVelocity" | "ipVelocity" | "emailVelocity" | "billingAddressVelocity" | "paymentInstrumentApprovedTransactionCount" | "score">;
|
|
195
195
|
redirectUrl?: StorefrontTransactionRedirectUrl;
|
|
196
196
|
/**
|
|
197
197
|
* ID of the promotion to apply to this deposit.
|
|
@@ -769,7 +769,7 @@ export type StorefrontPostOrderPauseVariables = {
|
|
|
769
769
|
path: StorefrontPostOrderPausePath;
|
|
770
770
|
body: StorefrontPostOrderPauseBody;
|
|
771
771
|
};
|
|
772
|
-
export type StorefrontPostSubscriptionItemsChangeResult = StorefrontChangeQuote
|
|
772
|
+
export type StorefrontPostSubscriptionItemsChangeResult = Omit<StorefrontChangeQuote, "acceptanceConditions">;
|
|
773
773
|
export type StorefrontPostSubscriptionItemsChangePath = {
|
|
774
774
|
/**
|
|
775
775
|
* ID of the resource.
|
|
@@ -837,7 +837,7 @@ export type StorefrontDeleteOrderChangeResponseHeaders = {
|
|
|
837
837
|
export type StorefrontDeleteOrderChangeVariables = {
|
|
838
838
|
path: StorefrontDeleteOrderChangePath;
|
|
839
839
|
};
|
|
840
|
-
export type StorefrontPostSubscriptionReactivationResult = StorefrontReactivationQuote
|
|
840
|
+
export type StorefrontPostSubscriptionReactivationResult = Omit<StorefrontReactivationQuote, "acceptanceConditions">;
|
|
841
841
|
export type StorefrontPostSubscriptionReactivationBody = PostSubscriptionReactivation;
|
|
842
842
|
export type StorefrontPostSubscriptionReactivationVariables = {
|
|
843
843
|
body?: StorefrontPostSubscriptionReactivationBody;
|
|
@@ -961,7 +961,7 @@ export type StorefrontPatchPaymentInstrumentBody = {
|
|
|
961
961
|
* If this field is supplied,
|
|
962
962
|
* it overrides the billing address obtained from the token.
|
|
963
963
|
*/
|
|
964
|
-
billingAddress?: ContactObject
|
|
964
|
+
billingAddress?: Omit<ContactObject, "hash">;
|
|
965
965
|
customFields?: ResourceCustomFields;
|
|
966
966
|
};
|
|
967
967
|
export type StorefrontPatchPaymentInstrumentResponseHeaders = {
|
|
@@ -1035,7 +1035,7 @@ export type StorefrontPostPaymentInstrumentSetupBody = {
|
|
|
1035
1035
|
* @format uri
|
|
1036
1036
|
*/
|
|
1037
1037
|
redirectUrl?: string | null;
|
|
1038
|
-
riskMetadata?: RiskMetadata
|
|
1038
|
+
riskMetadata?: Omit<RiskMetadata, "isProxy" | "isVpn" | "isTor" | "isHosting" | "hostingName" | "isp" | "country" | "region" | "city" | "latitude" | "longitude" | "postalCode" | "timeZone" | "accuracyRadius" | "distance" | "hasMismatchedBillingAddressCountry" | "hasMismatchedBankCountry" | "hasMismatchedTimeZone" | "hasMismatchedHolderName" | "hasFakeName" | "isHighRiskCountry" | "paymentInstrumentVelocity" | "declinedPaymentInstrumentVelocity" | "deviceVelocity" | "ipVelocity" | "emailVelocity" | "billingAddressVelocity" | "paymentInstrumentApprovedTransactionCount" | "score">;
|
|
1039
1039
|
};
|
|
1040
1040
|
export type StorefrontPostPaymentInstrumentSetupResponseHeaders = {
|
|
1041
1041
|
location?: string;
|
|
@@ -1293,7 +1293,7 @@ export type StorefrontGetProductPath = {
|
|
|
1293
1293
|
export type StorefrontGetProductVariables = {
|
|
1294
1294
|
path: StorefrontGetProductPath;
|
|
1295
1295
|
};
|
|
1296
|
-
export type StorefrontPostPurchaseResult = StorefrontPurchase
|
|
1296
|
+
export type StorefrontPostPurchaseResult = Omit<StorefrontPurchase, "websiteId" | "items" | "billingAddress" | "deliveryAddress" | "shippingRateId" | "paymentInstruction" | "couponIds" | "password" | "redirectUrl" | "customFields">;
|
|
1297
1297
|
export type StorefrontPostPurchaseBody = Omit<StorefrontPurchase, "orderId" | "invoice" | "transaction" | "token">;
|
|
1298
1298
|
export type StorefrontPostPurchaseResponseHeaders = {
|
|
1299
1299
|
location?: string;
|
|
@@ -1303,7 +1303,7 @@ export type StorefrontPostPurchaseResponseHeaders = {
|
|
|
1303
1303
|
export type StorefrontPostPurchaseVariables = {
|
|
1304
1304
|
body?: StorefrontPostPurchaseBody;
|
|
1305
1305
|
};
|
|
1306
|
-
export type StorefrontPostPreviewPurchaseResult = StorefrontOrderPreview
|
|
1306
|
+
export type StorefrontPostPreviewPurchaseResult = Omit<StorefrontOrderPreview, "websiteId" | "items" | "couponIds" | "shippingRateId">;
|
|
1307
1307
|
export type StorefrontPostPreviewPurchaseBody = Omit<StorefrontOrderPreview, "currency" | "lineItems" | "shippingRates" | "taxes" | "discounts" | "subtotalAmount" | "taxAmount" | "shippingAmount" | "discountsAmount" | "total" | "initialAmounts" | "recurringAmounts">;
|
|
1308
1308
|
export type StorefrontPostPreviewPurchaseResponseHeaders = {
|
|
1309
1309
|
rateLimitLimit?: number;
|
|
@@ -1392,7 +1392,7 @@ export type StorefrontPostReadyToPayoutResponseHeaders = {
|
|
|
1392
1392
|
export type StorefrontPostReadyToPayoutVariables = {
|
|
1393
1393
|
body?: StorefrontPostReadyToPayoutBody;
|
|
1394
1394
|
};
|
|
1395
|
-
export type StorefrontPostRegisterResult = StorefrontAccount
|
|
1395
|
+
export type StorefrontPostRegisterResult = Omit<StorefrontAccount, "paymentToken" | "defaultPaymentInstrumentId">;
|
|
1396
1396
|
export type StorefrontPostRegisterBody = {
|
|
1397
1397
|
/**
|
|
1398
1398
|
* Username.
|
|
@@ -1403,7 +1403,7 @@ export type StorefrontPostRegisterBody = {
|
|
|
1403
1403
|
* @format password
|
|
1404
1404
|
*/
|
|
1405
1405
|
password: string;
|
|
1406
|
-
primaryAddress?: ContactObject
|
|
1406
|
+
primaryAddress?: Omit<ContactObject, "hash">;
|
|
1407
1407
|
/**
|
|
1408
1408
|
* Write-only payment token;
|
|
1409
1409
|
* if supplied, it converts into a payment instrument and is set as the `defaultPaymentInstrument`.
|
|
@@ -1411,7 +1411,7 @@ export type StorefrontPostRegisterBody = {
|
|
|
1411
1411
|
* The token may only be used once before it is expired.
|
|
1412
1412
|
*/
|
|
1413
1413
|
paymentToken?: string;
|
|
1414
|
-
leadSource?: LeadSourceData
|
|
1414
|
+
leadSource?: Omit<LeadSourceData, "_links">;
|
|
1415
1415
|
/**
|
|
1416
1416
|
* ID of the website where the customer signs up.
|
|
1417
1417
|
* If this value is not set, the account is associated with the first website of the organization.
|
|
@@ -3940,9 +3940,9 @@ export declare const client: import('./core-client.ts').Client<Ops, import('./co
|
|
|
3940
3940
|
export declare const configure: (config: import('./core-client.ts').ClientConfig<import('./core-client.ts').OperationContext<"StorefrontGetAccount" | "StorefrontPatchAccount" | "StorefrontPostForgotPassword" | "StorefrontPatchAccountPassword" | "StorefrontPostAccountResendVerification" | "StorefrontPostResetPassword" | "StorefrontPostAccountVerification" | "StorefrontGetBillingPortal" | "StorefrontGetDepositStrategy" | "StorefrontGetDepositRequest" | "StorefrontGetCashier" | "StorefrontPostDeposit" | "StorefrontGetCheckoutForm" | "StorefrontGetCustomFieldCollection" | "StorefrontGetInvoiceCollection" | "StorefrontGetInvoice" | "StorefrontPatchInvoice" | "StorefrontGetOrderUpcomingInvoice" | "StorefrontPostKycDocument" | "StorefrontGetKycDocument" | "StorefrontPatchKycDocument" | "StorefrontGetKycRequest" | "StorefrontPostKycLivenessSession" | "StorefrontGetKycLivenessSession" | "StorefrontPostKycLivenessSessionFinish" | "StorefrontPostLogin" | "StorefrontPostLogout" | "StorefrontGetOrderCollection" | "StorefrontGetOrder" | "StorefrontPatchOrder" | "StorefrontPostOrderCancellation" | "StorefrontPostOrderPause" | "StorefrontPostSubscriptionItemsChange" | "StorefrontGetOrderChangeCollection" | "StorefrontDeleteOrderChange" | "StorefrontPostSubscriptionReactivation" | "StorefrontPostPayment" | "StorefrontGetPaymentInstrumentCollection" | "StorefrontPostPaymentInstrument" | "StorefrontGetPaymentInstrument" | "StorefrontPatchPaymentInstrument" | "StorefrontPostPaymentInstrumentDeactivation" | "StorefrontGetPaymentInstrumentSetup" | "StorefrontPostPaymentInstrumentSetup" | "StorefrontGetPayoutRequestCollection" | "StorefrontPostPayoutRequest" | "StorefrontGetPayoutRequest" | "StorefrontPatchPayoutRequest" | "StorefrontPostPayoutRequestCancellation" | "StorefrontGetPlanCollection" | "StorefrontGetPlan" | "StorefrontGetProductCollection" | "StorefrontGetProduct" | "StorefrontPostPurchase" | "StorefrontPostPreviewPurchase" | "StorefrontGetQuote" | "StorefrontPostQuoteAcceptance" | "StorefrontPostQuoteRejection" | "StorefrontPostReadyToPay" | "StorefrontPostReadyToPayout" | "StorefrontPostRegister" | "StorefrontPostSubscription" | "StorefrontGetTransactionCollection" | "StorefrontGetTransaction" | "StorefrontGetTransactionDccOffer" | "StorefrontPatchTransactionDccOffer" | "StorefrontPostKycRequestContinue" | "StorefrontPostKycRequestBypass" | "StorefrontGetWebsite", "/storefront/account" | "/storefront/account/forgot-password" | "/storefront/account/password" | "/storefront/account/resend-verification" | "/storefront/account/reset-password/{token}" | "/storefront/account/verification/{token}" | "/storefront/billing-portals/{slug}" | "/storefront/deposit-strategies/{id}" | "/storefront/deposit-requests/{id}" | "/storefront/cashiers/{id}" | "/storefront/deposit" | "/storefront/checkout-forms/{id}" | "/storefront/custom-fields/{resource}" | "/storefront/invoices" | "/storefront/invoices/{id}" | "/storefront/orders/{id}/upcoming-invoice" | "/storefront/kyc-documents" | "/storefront/kyc-documents/{id}" | "/storefront/kyc-requests/{id}" | "/storefront/kyc-liveness-sessions" | "/storefront/kyc-liveness-sessions/{id}" | "/storefront/kyc-liveness-sessions/{id}/finish" | "/storefront/login" | "/storefront/logout" | "/storefront/orders" | "/storefront/orders/{id}" | "/storefront/orders/{id}/cancellation" | "/storefront/orders/{id}/pause" | "/storefront/subscriptions/{id}/change-items" | "/storefront/order-changes" | "/storefront/order-changes/{id}" | "/storefront/subscription-reactivations" | "/storefront/payment" | "/storefront/payment-instruments" | "/storefront/payment-instruments/{id}" | "/storefront/payment-instruments/{id}/deactivation" | "/storefront/payment-instruments/{id}/setup" | "/storefront/payout-requests" | "/storefront/payout-requests/{id}" | "/storefront/payout-request-cancellations" | "/storefront/plans" | "/storefront/plans/{id}" | "/storefront/products" | "/storefront/products/{id}" | "/storefront/purchase" | "/storefront/preview-purchase" | "/storefront/quotes/{id}" | "/storefront/quotes/{id}/accept" | "/storefront/quotes/{id}/reject" | "/storefront/ready-to-pay" | "/storefront/ready-to-payout" | "/storefront/register" | "/storefront/subscriptions" | "/storefront/transactions" | "/storefront/transactions/{id}" | "/storefront/transactions/{id}/dcc" | "/storefront/transactions/{id}/{token}/continue" | "/storefront/transactions/{id}/{token}/bypass" | "/storefront/websites/{id}", "Storefront account" | "Storefront billing portals" | "Storefront deposits" | "Storefront cashiers" | "Storefront checkout forms" | "Storefront custom fields" | "Storefront invoices" | "Storefront orders" | "Storefront KYC documents" | "Storefront purchases" | "Storefront payment instruments" | "Storefront transactions" | "Storefront plans" | "Storefront products" | "Storefront quotes" | "Storefront websites">>) => void, use: (...middleware: import('./core-client.ts').Middleware<import('./core-client.ts').OperationContext<"StorefrontGetAccount" | "StorefrontPatchAccount" | "StorefrontPostForgotPassword" | "StorefrontPatchAccountPassword" | "StorefrontPostAccountResendVerification" | "StorefrontPostResetPassword" | "StorefrontPostAccountVerification" | "StorefrontGetBillingPortal" | "StorefrontGetDepositStrategy" | "StorefrontGetDepositRequest" | "StorefrontGetCashier" | "StorefrontPostDeposit" | "StorefrontGetCheckoutForm" | "StorefrontGetCustomFieldCollection" | "StorefrontGetInvoiceCollection" | "StorefrontGetInvoice" | "StorefrontPatchInvoice" | "StorefrontGetOrderUpcomingInvoice" | "StorefrontPostKycDocument" | "StorefrontGetKycDocument" | "StorefrontPatchKycDocument" | "StorefrontGetKycRequest" | "StorefrontPostKycLivenessSession" | "StorefrontGetKycLivenessSession" | "StorefrontPostKycLivenessSessionFinish" | "StorefrontPostLogin" | "StorefrontPostLogout" | "StorefrontGetOrderCollection" | "StorefrontGetOrder" | "StorefrontPatchOrder" | "StorefrontPostOrderCancellation" | "StorefrontPostOrderPause" | "StorefrontPostSubscriptionItemsChange" | "StorefrontGetOrderChangeCollection" | "StorefrontDeleteOrderChange" | "StorefrontPostSubscriptionReactivation" | "StorefrontPostPayment" | "StorefrontGetPaymentInstrumentCollection" | "StorefrontPostPaymentInstrument" | "StorefrontGetPaymentInstrument" | "StorefrontPatchPaymentInstrument" | "StorefrontPostPaymentInstrumentDeactivation" | "StorefrontGetPaymentInstrumentSetup" | "StorefrontPostPaymentInstrumentSetup" | "StorefrontGetPayoutRequestCollection" | "StorefrontPostPayoutRequest" | "StorefrontGetPayoutRequest" | "StorefrontPatchPayoutRequest" | "StorefrontPostPayoutRequestCancellation" | "StorefrontGetPlanCollection" | "StorefrontGetPlan" | "StorefrontGetProductCollection" | "StorefrontGetProduct" | "StorefrontPostPurchase" | "StorefrontPostPreviewPurchase" | "StorefrontGetQuote" | "StorefrontPostQuoteAcceptance" | "StorefrontPostQuoteRejection" | "StorefrontPostReadyToPay" | "StorefrontPostReadyToPayout" | "StorefrontPostRegister" | "StorefrontPostSubscription" | "StorefrontGetTransactionCollection" | "StorefrontGetTransaction" | "StorefrontGetTransactionDccOffer" | "StorefrontPatchTransactionDccOffer" | "StorefrontPostKycRequestContinue" | "StorefrontPostKycRequestBypass" | "StorefrontGetWebsite", "/storefront/account" | "/storefront/account/forgot-password" | "/storefront/account/password" | "/storefront/account/resend-verification" | "/storefront/account/reset-password/{token}" | "/storefront/account/verification/{token}" | "/storefront/billing-portals/{slug}" | "/storefront/deposit-strategies/{id}" | "/storefront/deposit-requests/{id}" | "/storefront/cashiers/{id}" | "/storefront/deposit" | "/storefront/checkout-forms/{id}" | "/storefront/custom-fields/{resource}" | "/storefront/invoices" | "/storefront/invoices/{id}" | "/storefront/orders/{id}/upcoming-invoice" | "/storefront/kyc-documents" | "/storefront/kyc-documents/{id}" | "/storefront/kyc-requests/{id}" | "/storefront/kyc-liveness-sessions" | "/storefront/kyc-liveness-sessions/{id}" | "/storefront/kyc-liveness-sessions/{id}/finish" | "/storefront/login" | "/storefront/logout" | "/storefront/orders" | "/storefront/orders/{id}" | "/storefront/orders/{id}/cancellation" | "/storefront/orders/{id}/pause" | "/storefront/subscriptions/{id}/change-items" | "/storefront/order-changes" | "/storefront/order-changes/{id}" | "/storefront/subscription-reactivations" | "/storefront/payment" | "/storefront/payment-instruments" | "/storefront/payment-instruments/{id}" | "/storefront/payment-instruments/{id}/deactivation" | "/storefront/payment-instruments/{id}/setup" | "/storefront/payout-requests" | "/storefront/payout-requests/{id}" | "/storefront/payout-request-cancellations" | "/storefront/plans" | "/storefront/plans/{id}" | "/storefront/products" | "/storefront/products/{id}" | "/storefront/purchase" | "/storefront/preview-purchase" | "/storefront/quotes/{id}" | "/storefront/quotes/{id}/accept" | "/storefront/quotes/{id}/reject" | "/storefront/ready-to-pay" | "/storefront/ready-to-payout" | "/storefront/register" | "/storefront/subscriptions" | "/storefront/transactions" | "/storefront/transactions/{id}" | "/storefront/transactions/{id}/dcc" | "/storefront/transactions/{id}/{token}/continue" | "/storefront/transactions/{id}/{token}/bypass" | "/storefront/websites/{id}", "Storefront account" | "Storefront billing portals" | "Storefront deposits" | "Storefront cashiers" | "Storefront checkout forms" | "Storefront custom fields" | "Storefront invoices" | "Storefront orders" | "Storefront KYC documents" | "Storefront purchases" | "Storefront payment instruments" | "Storefront transactions" | "Storefront plans" | "Storefront products" | "Storefront quotes" | "Storefront websites">>[]) => void;
|
|
3941
3941
|
export declare const StorefrontGetAccount: (<Init extends import('./core-client.ts').RequestOptions | undefined = undefined>(args?: {
|
|
3942
3942
|
query?: StorefrontGetAccountQuery;
|
|
3943
|
-
} | undefined, init?: Init | undefined) => Promise<import('./core-client.ts').EnvelopeResult<
|
|
3943
|
+
} | undefined, init?: Init | undefined) => Promise<import('./core-client.ts').EnvelopeResult<StorefrontGetAccountResult, Record<string, never>, Init>>) & import('./core-client.ts').OperationMethodIdentity, StorefrontPatchAccount: (<Init extends import('./core-client.ts').RequestOptions | undefined = undefined>(args?: {
|
|
3944
3944
|
body?: StorefrontPatchAccountBody;
|
|
3945
|
-
} | undefined, init?: Init | undefined) => Promise<import('./core-client.ts').EnvelopeResult<
|
|
3945
|
+
} | undefined, init?: Init | undefined) => Promise<import('./core-client.ts').EnvelopeResult<StorefrontPatchAccountResult, {
|
|
3946
3946
|
rateLimitLimit?: number;
|
|
3947
3947
|
rateLimitRemaining?: number;
|
|
3948
3948
|
}, Init>>) & import('./core-client.ts').OperationMethodIdentity, StorefrontPostForgotPassword: (<Init extends import('./core-client.ts').RequestOptions | undefined = undefined>(args?: {
|
|
@@ -3952,7 +3952,7 @@ export declare const StorefrontGetAccount: (<Init extends import('./core-client.
|
|
|
3952
3952
|
rateLimitRemaining?: number;
|
|
3953
3953
|
}, Init>>) & import('./core-client.ts').OperationMethodIdentity, StorefrontPatchAccountPassword: (<Init extends import('./core-client.ts').RequestOptions | undefined = undefined>(args?: {
|
|
3954
3954
|
body?: StorefrontPatchAccountPasswordBody;
|
|
3955
|
-
} | undefined, init?: Init | undefined) => Promise<import('./core-client.ts').EnvelopeResult<
|
|
3955
|
+
} | undefined, init?: Init | undefined) => Promise<import('./core-client.ts').EnvelopeResult<StorefrontPatchAccountPasswordResult, {
|
|
3956
3956
|
rateLimitLimit?: number;
|
|
3957
3957
|
rateLimitRemaining?: number;
|
|
3958
3958
|
}, Init>>) & import('./core-client.ts').OperationMethodIdentity, StorefrontPostAccountResendVerification: (<Init extends import('./core-client.ts').RequestOptions | undefined = undefined>(args?: {
|
|
@@ -3963,7 +3963,7 @@ export declare const StorefrontGetAccount: (<Init extends import('./core-client.
|
|
|
3963
3963
|
}, Init>>) & import('./core-client.ts').OperationMethodIdentity, StorefrontPostResetPassword: (<Init extends import('./core-client.ts').RequestOptions | undefined = undefined>(args: {
|
|
3964
3964
|
path: StorefrontPostResetPasswordPath;
|
|
3965
3965
|
body?: StorefrontPostResetPasswordBody;
|
|
3966
|
-
}, init?: Init | undefined) => Promise<import('./core-client.ts').EnvelopeResult<
|
|
3966
|
+
}, init?: Init | undefined) => Promise<import('./core-client.ts').EnvelopeResult<StorefrontPostResetPasswordResult, {
|
|
3967
3967
|
location?: string;
|
|
3968
3968
|
rateLimitLimit?: number;
|
|
3969
3969
|
rateLimitRemaining?: number;
|
|
@@ -4082,7 +4082,7 @@ export declare const StorefrontGetAccount: (<Init extends import('./core-client.
|
|
|
4082
4082
|
}, Init>>) & import('./core-client.ts').OperationMethodIdentity, StorefrontPostSubscriptionItemsChange: (<Init extends import('./core-client.ts').RequestOptions | undefined = undefined>(args: {
|
|
4083
4083
|
path: StorefrontPostSubscriptionItemsChangePath;
|
|
4084
4084
|
body: StorefrontPostSubscriptionItemsChangeBody;
|
|
4085
|
-
}, init?: Init | undefined) => Promise<import('./core-client.ts').EnvelopeResult<
|
|
4085
|
+
}, init?: Init | undefined) => Promise<import('./core-client.ts').EnvelopeResult<StorefrontPostSubscriptionItemsChangeResult, {
|
|
4086
4086
|
location?: string;
|
|
4087
4087
|
rateLimitLimit?: number;
|
|
4088
4088
|
rateLimitRemaining?: number;
|
|
@@ -4099,7 +4099,7 @@ export declare const StorefrontGetAccount: (<Init extends import('./core-client.
|
|
|
4099
4099
|
rateLimitRemaining?: number;
|
|
4100
4100
|
}, Init>>) & import('./core-client.ts').OperationMethodIdentity, StorefrontPostSubscriptionReactivation: (<Init extends import('./core-client.ts').RequestOptions | undefined = undefined>(args?: {
|
|
4101
4101
|
body?: StorefrontPostSubscriptionReactivationBody;
|
|
4102
|
-
} | undefined, init?: Init | undefined) => Promise<import('./core-client.ts').EnvelopeResult<
|
|
4102
|
+
} | undefined, init?: Init | undefined) => Promise<import('./core-client.ts').EnvelopeResult<StorefrontPostSubscriptionReactivationResult, Record<string, never>, Init>>) & import('./core-client.ts').OperationMethodIdentity, StorefrontPostPayment: (<Init extends import('./core-client.ts').RequestOptions | undefined = undefined>(args: {
|
|
4103
4103
|
body: StorefrontPostPaymentBody;
|
|
4104
4104
|
}, init?: Init | undefined) => Promise<import('./core-client.ts').EnvelopeResult<StorefrontTransaction, {
|
|
4105
4105
|
rateLimitLimit?: number;
|
|
@@ -4183,13 +4183,13 @@ export declare const StorefrontGetAccount: (<Init extends import('./core-client.
|
|
|
4183
4183
|
path: StorefrontGetProductPath;
|
|
4184
4184
|
}, init?: Init | undefined) => Promise<import('./core-client.ts').EnvelopeResult<StorefrontProduct, Record<string, never>, Init>>) & import('./core-client.ts').OperationMethodIdentity, StorefrontPostPurchase: (<Init extends import('./core-client.ts').RequestOptions | undefined = undefined>(args?: {
|
|
4185
4185
|
body?: StorefrontPostPurchaseBody;
|
|
4186
|
-
} | undefined, init?: Init | undefined) => Promise<import('./core-client.ts').EnvelopeResult<
|
|
4186
|
+
} | undefined, init?: Init | undefined) => Promise<import('./core-client.ts').EnvelopeResult<StorefrontPostPurchaseResult, {
|
|
4187
4187
|
location?: string;
|
|
4188
4188
|
rateLimitLimit?: number;
|
|
4189
4189
|
rateLimitRemaining?: number;
|
|
4190
4190
|
}, Init>>) & import('./core-client.ts').OperationMethodIdentity, StorefrontPostPreviewPurchase: (<Init extends import('./core-client.ts').RequestOptions | undefined = undefined>(args?: {
|
|
4191
4191
|
body?: StorefrontPostPreviewPurchaseBody;
|
|
4192
|
-
} | undefined, init?: Init | undefined) => Promise<import('./core-client.ts').EnvelopeResult<
|
|
4192
|
+
} | undefined, init?: Init | undefined) => Promise<import('./core-client.ts').EnvelopeResult<StorefrontPostPreviewPurchaseResult, {
|
|
4193
4193
|
rateLimitLimit?: number;
|
|
4194
4194
|
rateLimitRemaining?: number;
|
|
4195
4195
|
}, Init>>) & import('./core-client.ts').OperationMethodIdentity, StorefrontGetQuote: (<Init extends import('./core-client.ts').RequestOptions | undefined = undefined>(args: {
|
|
@@ -4218,7 +4218,7 @@ export declare const StorefrontGetAccount: (<Init extends import('./core-client.
|
|
|
4218
4218
|
rateLimitRemaining?: number;
|
|
4219
4219
|
}, Init>>) & import('./core-client.ts').OperationMethodIdentity, StorefrontPostRegister: (<Init extends import('./core-client.ts').RequestOptions | undefined = undefined>(args?: {
|
|
4220
4220
|
body?: StorefrontPostRegisterBody;
|
|
4221
|
-
} | undefined, init?: Init | undefined) => Promise<import('./core-client.ts').EnvelopeResult<
|
|
4221
|
+
} | undefined, init?: Init | undefined) => Promise<import('./core-client.ts').EnvelopeResult<StorefrontPostRegisterResult, {
|
|
4222
4222
|
location?: string;
|
|
4223
4223
|
rateLimitLimit?: number;
|
|
4224
4224
|
rateLimitRemaining?: number;
|
|
@@ -16,11 +16,29 @@ import { createClient } from "./runtime/factory.js";
|
|
|
16
16
|
* Every action in the [Rebilly UI](https://app.rebilly.com) is supported by an API which is documented and available for use, so that you may automate any necessary workflows or processes.
|
|
17
17
|
* This API reference documentation contains the most commonly integrated resources.
|
|
18
18
|
*
|
|
19
|
+
* # Base URL
|
|
20
|
+
*
|
|
21
|
+
* Each environment has its own base URL.
|
|
22
|
+
* The organization ID is part of the path.
|
|
23
|
+
*
|
|
24
|
+
* | Environment | Base URL |
|
|
25
|
+
* | --- | --- |
|
|
26
|
+
* | Sandbox | `https://api-sandbox.rebilly.com/organizations/{organizationId}` |
|
|
27
|
+
* | Live | `https://api.rebilly.com/organizations/{organizationId}` |
|
|
28
|
+
*
|
|
29
|
+
* The sandbox and live environments do not share data, API keys, or configuration.
|
|
30
|
+
* For more information, see [Environments](/docs/tutorials/environments/).
|
|
31
|
+
*
|
|
32
|
+
* To obtain your organization ID, see [Obtain your organization ID and website ID](/docs/settings/organizations-and-websites/#obtain-your-organization-id-and-website-id).
|
|
33
|
+
*
|
|
19
34
|
* # Authentication
|
|
20
35
|
*
|
|
21
36
|
* Rebilly offers four forms of authentication: secret key, publishable key, JSON Web Tokens, and public signature key.
|
|
22
37
|
*
|
|
23
38
|
* - Secret API key: Use to make requests from the server side.
|
|
39
|
+
* Send the key in the `REB-APIKEY` header.
|
|
40
|
+
* Sandbox keys start with `sk_sandbox_` and live keys start with `sk_live_`.
|
|
41
|
+
* To obtain a key, see [Obtain a secret key](/docs/dev-docs/api-keys/#obtain-a-secret-key).
|
|
24
42
|
* Never share these keys.
|
|
25
43
|
* Keep them guarded and secure.
|
|
26
44
|
* - Publishable API key: Use in your client-side code to tokenize payment information.
|
|
@@ -79,6 +97,32 @@ import { createClient } from "./runtime/factory.js";
|
|
|
79
97
|
*
|
|
80
98
|
* To create and manage API keys, see [API keys](https://www.rebilly.com/docs/dev-docs/api-keys/).
|
|
81
99
|
*
|
|
100
|
+
* ## Send your first request
|
|
101
|
+
*
|
|
102
|
+
* This cURL request lists the five most recent customers in your sandbox organization.
|
|
103
|
+
*
|
|
104
|
+
* 1. In a terminal, paste the following command:
|
|
105
|
+
*
|
|
106
|
+
* ```bash
|
|
107
|
+
* curl 'https://api-sandbox.rebilly.com/organizations/your_organization_id/customers?limit=5&sort=-createdTime' \
|
|
108
|
+
* -H 'REB-APIKEY: your_secret_API_key'
|
|
109
|
+
* ```
|
|
110
|
+
*
|
|
111
|
+
* 1. Replace `your_organization_id` with your organization ID.
|
|
112
|
+
* For more information, see [Obtain your organization ID and website ID](/docs/settings/organizations-and-websites/#obtain-your-organization-id-and-website-id).
|
|
113
|
+
* 1. Replace `your_secret_API_key` with a sandbox secret key.
|
|
114
|
+
* For more information, see [Obtain a secret key](/docs/dev-docs/api-keys/#obtain-a-secret-key).
|
|
115
|
+
* 1. Run the command.
|
|
116
|
+
*
|
|
117
|
+
* In the response, a `200` status code indicates a successful request.
|
|
118
|
+
* The response body contains a JSON array of customers.
|
|
119
|
+
* An empty array means the request succeeded and the organization has no customers yet.
|
|
120
|
+
*
|
|
121
|
+
* List operations accept `limit`, `offset`, `filter`, and `sort` query parameters.
|
|
122
|
+
* For more information on filters, see [Search filters](/docs/dev-docs/search-filters/).
|
|
123
|
+
*
|
|
124
|
+
* To try operations in the browser, use the interactive examples in [Set up your environment](/docs/dev-docs/set-up-environment/#add-data-to-your-rebilly-environment).
|
|
125
|
+
*
|
|
82
126
|
* # Rate limits
|
|
83
127
|
*
|
|
84
128
|
* Rate limits apply to the organization, not to the API key.
|
|
@@ -12,11 +12,29 @@
|
|
|
12
12
|
* Every action in the [Rebilly UI](https://app.rebilly.com) is supported by an API which is documented and available for use, so that you may automate any necessary workflows or processes.
|
|
13
13
|
* This API reference documentation contains the most commonly integrated resources.
|
|
14
14
|
*
|
|
15
|
+
* # Base URL
|
|
16
|
+
*
|
|
17
|
+
* Each environment has its own base URL.
|
|
18
|
+
* The organization ID is part of the path.
|
|
19
|
+
*
|
|
20
|
+
* | Environment | Base URL |
|
|
21
|
+
* | --- | --- |
|
|
22
|
+
* | Sandbox | `https://api-sandbox.rebilly.com/organizations/{organizationId}` |
|
|
23
|
+
* | Live | `https://api.rebilly.com/organizations/{organizationId}` |
|
|
24
|
+
*
|
|
25
|
+
* The sandbox and live environments do not share data, API keys, or configuration.
|
|
26
|
+
* For more information, see [Environments](/docs/tutorials/environments/).
|
|
27
|
+
*
|
|
28
|
+
* To obtain your organization ID, see [Obtain your organization ID and website ID](/docs/settings/organizations-and-websites/#obtain-your-organization-id-and-website-id).
|
|
29
|
+
*
|
|
15
30
|
* # Authentication
|
|
16
31
|
*
|
|
17
32
|
* Rebilly offers four forms of authentication: secret key, publishable key, JSON Web Tokens, and public signature key.
|
|
18
33
|
*
|
|
19
34
|
* - Secret API key: Use to make requests from the server side.
|
|
35
|
+
* Send the key in the `REB-APIKEY` header.
|
|
36
|
+
* Sandbox keys start with `sk_sandbox_` and live keys start with `sk_live_`.
|
|
37
|
+
* To obtain a key, see [Obtain a secret key](/docs/dev-docs/api-keys/#obtain-a-secret-key).
|
|
20
38
|
* Never share these keys.
|
|
21
39
|
* Keep them guarded and secure.
|
|
22
40
|
* - Publishable API key: Use in your client-side code to tokenize payment information.
|
|
@@ -75,6 +93,32 @@
|
|
|
75
93
|
*
|
|
76
94
|
* To create and manage API keys, see [API keys](https://www.rebilly.com/docs/dev-docs/api-keys/).
|
|
77
95
|
*
|
|
96
|
+
* ## Send your first request
|
|
97
|
+
*
|
|
98
|
+
* This cURL request lists the five most recent customers in your sandbox organization.
|
|
99
|
+
*
|
|
100
|
+
* 1. In a terminal, paste the following command:
|
|
101
|
+
*
|
|
102
|
+
* ```bash
|
|
103
|
+
* curl 'https://api-sandbox.rebilly.com/organizations/your_organization_id/customers?limit=5&sort=-createdTime' \
|
|
104
|
+
* -H 'REB-APIKEY: your_secret_API_key'
|
|
105
|
+
* ```
|
|
106
|
+
*
|
|
107
|
+
* 1. Replace `your_organization_id` with your organization ID.
|
|
108
|
+
* For more information, see [Obtain your organization ID and website ID](/docs/settings/organizations-and-websites/#obtain-your-organization-id-and-website-id).
|
|
109
|
+
* 1. Replace `your_secret_API_key` with a sandbox secret key.
|
|
110
|
+
* For more information, see [Obtain a secret key](/docs/dev-docs/api-keys/#obtain-a-secret-key).
|
|
111
|
+
* 1. Run the command.
|
|
112
|
+
*
|
|
113
|
+
* In the response, a `200` status code indicates a successful request.
|
|
114
|
+
* The response body contains a JSON array of customers.
|
|
115
|
+
* An empty array means the request succeeded and the organization has no customers yet.
|
|
116
|
+
*
|
|
117
|
+
* List operations accept `limit`, `offset`, `filter`, and `sort` query parameters.
|
|
118
|
+
* For more information on filters, see [Search filters](/docs/dev-docs/search-filters/).
|
|
119
|
+
*
|
|
120
|
+
* To try operations in the browser, use the interactive examples in [Set up your environment](/docs/dev-docs/set-up-environment/#add-data-to-your-rebilly-environment).
|
|
121
|
+
*
|
|
78
122
|
* # Rate limits
|
|
79
123
|
*
|
|
80
124
|
* Rate limits apply to the organization, not to the API key.
|