Skip to content

Commit e1fefb3

Browse files
Payout Groups - Python
1 parent e747dff commit e1fefb3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/bitpay/clients/payout_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ def create_group(self, payouts: List[Payout]) -> PayoutGroup:
218218
params["instructions"] = instructions
219219

220220
response_json = self.__bitpay_client.post("payouts/group", params)
221-
return self.get_payout_group_response(response_json, "completed")
221+
return self.get_payout_group_response(response_json, "created")
222222
except BitPayException as exe:
223223
raise PayoutCreationException(
224224
"failed to serialize Payout object : %s" % str(exe),

tests/unit/json/create_payout_group_response.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"completed": [
2+
"created": [
33
{
44
"id": "JMwv8wQCXANoU2ZZQ9a9GH",
55
"recipientId": "LDxRZCGq174SF8AnQpdBPB",

0 commit comments

Comments
 (0)